Function at 0x10003770
Capabilities:
Check http status code
Create http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x100ef251
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, 0x1074
call fcn.10078100
mov eax, dword [0x10139d20]
xor eax, esp
mov dword [esp + 0x1070], eax
push ebx
push esi
push edi
mov eax, dword [0x10139d20]
xor eax, esp
push eax
lea eax, [esp + 0x10b8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0
push 0
mov edi, edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], vtable.RC::RCInternetSession.0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [esp + 0x4c], ebx
push 4
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x10c8], 0
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 2
push ebx
mov dword [esp + 0x34], 0xbb8
call esi
push 4
lea eax, [esp + 0x28]
push eax
push 3
push ebx
mov dword [esp + 0x34], 5
call esi
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], vtable.RC::RCHttpFile.0
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x40]
mov byte [esp + 0x10c0], 1
cmp dword [eax + 0x18], 8
jb 0x10003844
mov edx, dword [eax + 4]
jmp 0x10003847
lea edx, [eax + 4]
mov eax, edx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ecx
mov word [esp + 0x58], cx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003860
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x5c]
call fcn.10002260
push ebx
lea ecx, [esp + 0x58]
lea esi, [esp + 0x34]
mov byte [esp + 0x10c4], 2
call fcn.10004f30
test al, al
sete byte [esp + 0x2b]
mov byte [esp + 0x10c0], 1
cmp dword [esp + 0x6c], 8
jb 0x100038b3
mov ecx, dword [esp + 0x58]
push ecx
call fcn.10054d78
add esp, 4
cmp byte [esp + 0x2b], 0
mov eax, dword [esp + 0x34]
je 0x1000390f
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x30], vtable.RC::RCHttpFile.0
je 0x100038db
push eax
call esi
xor eax, eax
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x38]
cmp ecx, edi
je 0x100038ee
push ecx
call esi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], edi
cmp eax, edi
mov dword [esp + 0x30], vtable.RC::RCInternetHandle.0
je 0x10003901
push eax
call esi
mov dword [esp + 0x34], edi
cmp ebx, edi
je 0x10003908
push ebx
call esi
xor al, al
jmp 0x10003c16
test eax, eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x24], 4
je 0x10003953
push 0
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x44]
push ecx
push 0x20000013
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
setne al
test al, al
je 0x10003953
cmp dword [esp + 0x3c], 0xc8
setne al
test al, al
je 0x10003991
cmp dword [edi], 0
je 0x10003976
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x1011e098
call fcn.10001df0
mov edi, dword [edi]
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
lea ecx, [esp + 0x30]
call fcn.10004d80
test ebx, ebx
je 0x1000398a
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x10003c16
lea eax, [esp + 0x30]
call fcn.10005240
mov esi, eax
test esi, esi
mov dword [esp + 0x44], esi
jne 0x100039e1
cmp dword [edi], eax
je 0x100039c6
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x1011e098
call fcn.10001df0
mov edi, dword [edi]
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
lea ecx, [esp + 0x30]
call fcn.10004d80
test ebx, ebx
je 0x1000398a
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x10003c16
mov ecx, dword [edi + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi]
test ecx, ecx
je 0x10003a33
fldz
mov edx, dword [ecx]
mov ebx, dword [esp + 0x40]
mov eax, dword [edx + 0xc]
sub esp, 8
fstp qword [esp]
push 0
push 0
push ebx
call eax
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [esp + 0x24]
mov edx, dword [edx + 8]
push eax
call edx
fldz
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
sub esp, 8
fstp qword [esp]
push 0
push esi
push ebx
call edx
push 0xfff
lea eax, [esp + 0x81]
push 0
push eax
mov dword [esp + 0x48], 0
mov byte [esp + 0x88], 0
call fcn.10077be0
xor eax, eax
xor ebx, ebx
add esp, 0xc
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
fldz
mov dword [esp + 0x54], eax
fst qword [esp + 0x6c]
mov dword [esp + 0x58], eax
fstp qword [esp + 0x74]
xor eax, eax
jb 0x10003b71
ja 0x10003a98
test esi, esi
jbe 0x10003b71
mov ecx, dword [edi]
test ecx, ecx
je 0x10003aad
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
test al, al
jne 0x10003b92
lea ecx, [esp + 0x7c]
push ecx
lea esi, [esp + 0x58]
lea eax, [esp + 0x34]
call fcn.10005160
mov ebx, dword [esp + 0x64]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10003ad5
cmp dword [edi], 0
jne 0x10003b82
jmp 0x10003b4e
test esi, esi
jbe 0x10003b3f
mov ecx, dword [esp + 0x2c]
push 0
lea edx, [esp + 0x54]
push edx
push esi
lea eax, [esp + 0x88]
push eax
push ecx
mov dword [esp + 0x64], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x50], esi
je 0x10003b0b
cmp dword [edi], 0
jne 0x10003bc4
mov ecx, dword [edi]
test ecx, ecx
je 0x10003b4e
fld qword [esp + 0x74]
mov eax, dword [esp + 0x44]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
sub esp, 8
fstp qword [esp]
push ebx
push eax
mov eax, dword [esp + 0x50]
push eax
call edx
mov ecx, dword [edi]
mov edx, dword [esp + 0x24]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
add edx, ebx
push edx
call eax
jmp 0x10003b4e
jne 0x10003b6d
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [esp + 0x3c], 1
cmp dword [esp + 0x3c], 5
ja 0x10003b6d
xor eax, eax
cmp dword [esp + 0x68], eax
jb 0x10003a98
ja 0x10003b6d
cmp ebx, dword [esp + 0x44]
jb 0x10003a98
mov esi, dword [esp + 0x44]
cmp ebx, esi
jne 0x10003b7d
xor eax, eax
cmp dword [esp + 0x68], eax
je 0x10003bd4
cmp dword [edi], 0
je 0x10003bae
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x1011e098
jmp 0x10003ba0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x1011e0a8
call fcn.10001df0
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
lea ecx, [esp + 0x30]
call fcn.10004d80
lea ecx, [esp + 0x48]
call fcn.10004c70
xor al, al
jmp 0x10003c16
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x1011e0bc
jmp 0x10003ba0
mov ecx, dword [edi]
add dword [edi + 4], esi
test ecx, ecx
je 0x10003c02
fld qword [esp + 0x74]
mov edx, dword [ecx]
mov eax, dword [esp + 0x40]
mov edx, dword [edx + 0xc]
sub esp, 8
fstp qword [esp]
push esi
push esi
push eax
call edx
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [edi + 4]
mov eax, dword [eax + 8]
push edx
call eax
lea ecx, [esp + 0x30]
call fcn.10004d80
lea ecx, [esp + 0x48]
call fcn.10004c70
mov al, 1
mov ecx, dword [esp + 0x10b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1070]
xor ecx, esp
call fcn.100773e8
mov esp, ebp
pop ebp
ret 4