Function at 0x100030e0
Capabilities:
Check http status code
Create http request
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x101833f1
mov eax, dword fs:[0]
push eax
mov eax, 0x1060
call fcn.100860f0
mov eax, dword [0x10207390]
xor eax, esp
mov dword [esp + 0x1058], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10207390]
xor eax, esp
push eax
lea eax, [esp + 0x1074]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1084]
push 0
push 0
push 0
push 0
mov ebx, edx
push 0
mov edi, ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], vtable.RC::RCInternetSession.0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebp, eax
mov dword [esp + 0x38], ebp
push 4
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x1084], 0
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 2
push ebp
mov dword [esp + 0x28], 0xbb8
call esi
push 4
lea edx, [esp + 0x1c]
push edx
push 3
push ebp
mov dword [esp + 0x28], 5
call esi
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], vtable.RC::RCHttpFile.0
mov dword [esp + 0x28], esi
mov byte [esp + 0x107c], 1
cmp dword [ebx + 0x18], 8
jb 0x100031ae
mov ebx, dword [ebx + 4]
jmp 0x100031b1
add ebx, 4
mov eax, ebx
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], esi
mov word [esp + 0x40], si
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x100031c7
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x44]
call fcn.10001a60
push ebp
lea ecx, [esp + 0x40]
lea esi, [esp + 0x24]
mov byte [esp + 0x1080], 2
call fcn.10004890
test al, al
sete bl
mov byte [esp + 0x107c], 1
cmp dword [esp + 0x54], 8
jb 0x10003218
mov eax, dword [esp + 0x40]
push eax
call fcn.100621bc
add esp, 4
test bl, bl
mov eax, dword [esp + 0x24]
je 0x10003271
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x20], vtable.RC::RCHttpFile.0
je 0x1000323d
push eax
call esi
xor eax, eax
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x28]
cmp ecx, edi
je 0x10003250
push ecx
call esi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], edi
cmp eax, edi
mov dword [esp + 0x20], vtable.RC::RCInternetHandle.0
je 0x10003263
push eax
call esi
mov dword [esp + 0x24], edi
cmp ebp, edi
je 0x1000326a
push ebp
call esi
xor al, al
jmp 0x1000355d
test eax, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x18], 4
je 0x100032b5
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
push edx
push 0x20000013
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
setne al
test al, al
je 0x100032b5
cmp dword [esp + 0x2c], 0xc8
setne al
test al, al
je 0x100032f3
cmp dword [edi], 0
je 0x100032d8
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x101ebf68
call fcn.100015f0
mov edi, dword [edi]
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
lea ecx, [esp + 0x20]
call fcn.100046f0
test ebp, ebp
je 0x100032ec
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x1000355d
lea eax, [esp + 0x20]
call fcn.10004b90
mov ebx, eax
test ebx, ebx
jne 0x1000333f
cmp dword [edi], eax
je 0x10003324
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x101ebf68
call fcn.100015f0
mov edi, dword [edi]
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
lea ecx, [esp + 0x20]
call fcn.100046f0
test ebp, ebp
je 0x100032ec
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x1000355d
mov ecx, dword [edi]
test ecx, ecx
mov esi, dword [edi + 4]
mov dword [esp + 0x1c], esi
je 0x1000338d
fldz
mov eax, dword [ecx]
mov ebp, dword [esp + 0x30]
mov edx, dword [eax + 0xc]
sub esp, 8
fstp qword [esp]
push 0
push 0
push ebp
call edx
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push esi
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 ebx
push ebp
call edx
push 0xfff
lea eax, [esp + 0x71]
push 0
push eax
mov dword [esp + 0x38], 0
mov byte [esp + 0x78], 0
call fcn.10085bc0
xor ebp, ebp
xor esi, esi
add esp, 0xc
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
fldz
test esi, esi
fst qword [esp + 0x54]
fstp qword [esp + 0x5c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
jb 0x100034b8
ja 0x100033ec
test ebx, ebx
jbe 0x100034b8
mov ecx, dword [edi]
test ecx, ecx
je 0x10003401
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
test al, al
jne 0x100034d9
lea ecx, [esp + 0x6c]
push ecx
lea esi, [esp + 0x40]
lea eax, [esp + 0x24]
call fcn.10004ab0
mov ebp, dword [esp + 0x4c]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10003429
cmp dword [edi], 0
jne 0x100034c9
jmp 0x1000349b
test esi, esi
jbe 0x1000348c
mov ecx, dword [esp + 0x68]
push 0
lea edx, [esp + 0x1c]
push edx
push esi
lea eax, [esp + 0x78]
push eax
push ecx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x18], esi
je 0x1000345c
cmp dword [edi], 0
jne 0x1000350b
mov ecx, dword [edi]
test ecx, ecx
je 0x1000349b
fld qword [esp + 0x5c]
mov edx, dword [ecx]
mov eax, dword [esp + 0x30]
mov edx, dword [edx + 0xc]
sub esp, 8
fstp qword [esp]
push ebp
push ebx
push eax
call edx
mov ecx, dword [edi]
mov edx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
add edx, ebp
push edx
call eax
jmp 0x1000349b
jne 0x100034b8
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [esp + 0x2c], 1
cmp dword [esp + 0x2c], 5
ja 0x100034b8
xor eax, eax
cmp dword [esp + 0x50], eax
jb 0x100033ec
ja 0x100034b8
cmp ebp, ebx
jb 0x100033ec
cmp ebp, ebx
jne 0x100034c4
xor eax, eax
cmp dword [esp + 0x50], eax
je 0x1000351b
cmp dword [edi], 0
je 0x100034f5
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x101ebf68
jmp 0x100034e7
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x101ebf78
call fcn.100015f0
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
lea ecx, [esp + 0x20]
call fcn.100046f0
lea ecx, [esp + 0x34]
call fcn.100045e0
xor al, al
jmp 0x1000355d
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x101ebf8c
jmp 0x100034e7
mov ecx, dword [edi]
add dword [edi + 4], ebx
test ecx, ecx
je 0x10003549
fld qword [esp + 0x5c]
mov edx, dword [ecx]
mov eax, dword [esp + 0x30]
mov edx, dword [edx + 0xc]
sub esp, 8
fstp qword [esp]
push ebx
push ebx
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 + 0x20]
call fcn.100046f0
lea ecx, [esp + 0x34]
call fcn.100045e0
mov al, 1
mov ecx, dword [esp + 0x1074]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1058]
xor ecx, esp
call fcn.1008545e
add esp, 0x106c
ret 4