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

Disassembly:
push 0xffffffffffffffff
push 0x10042c97
mov eax, dword fs:[0]
push eax
mov eax, 0x10a4
call fcn.1003fb60
mov eax, dword [0x10054020]
xor eax, esp
mov dword [esp + 0x109c], eax
push ebx
push ebp
push esi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0x10b4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x10c4]
mov ecx, dword [edi + 0x1c]
mov esi, dword [edi + 0x34]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10cc]
xor ebx, ebx
cmp ecx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], esi
je 0x1001d1e1
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
push ebx
push ebx
push eax
mov eax, dword [esp + 0x10d4]
push eax
call edx
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
push esi
call edx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x50], vtable.RC::RCInternetSession.0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebp, eax
mov dword [esp + 0x40], ebp
push 4
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x10c4], ebx
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 2
push ebp
mov dword [esp + 0x20], 0xbb8
call esi
push 4
lea ecx, [esp + 0x14]
push ecx
push 3
push ebp
mov dword [esp + 0x20], 5
call esi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], vtable.RC::RCHttpFile.0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x34], bl
mov byte [esp + 0x10bc], 1
push ebx
push 0x10047a94
lea esi, [esp + 0x54]
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], bx
call fcn.100025e0
mov byte [esp + 0x10bc], 2
push ebx
push 0x10047a94
lea esi, [esp + 0x7c]
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
call fcn.100025e0
mov byte [esp + 0x10bc], 3
push ebx
mov esi, 0xf
push 0x100480dc
lea ecx, [esp + 0x98]
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
call fcn.10003c40
lea edx, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x98]
push ecx
push ebp
lea ecx, [esp + 0x34]
mov byte [esp + 0x10cc], 4
call fcn.10001270
test al, al
sete byte [esp + 0x1f]
cmp dword [esp + 0xa8], 0x10
jb 0x1001d321
mov edx, dword [esp + 0x94]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0xa8], esi
mov esi, 8
cmp dword [esp + 0x8c], esi
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
jb 0x1001d351
mov eax, dword [esp + 0x78]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov byte [esp + 0x10bc], 1
cmp dword [esp + 0x64], esi
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
jb 0x1001d383
mov ecx, dword [esp + 0x50]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp byte [esp + 0x1f], bl
je 0x1001d404
cmp dword [edi + 0x1c], ebx
je 0x1001d3ad
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x30], esp
push 0x200
mov ecx, edi
call fcn.1001d760
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esp + 0x24], vtable.RC::RCHttpFile.0
mov byte [esp + 0x34], bl
je 0x1001d3d0
push eax
call esi
xor eax, eax
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
je 0x1001d3e3
push ecx
call esi
mov eax, dword [esp + 0x28]
mov dword [esp + 0x30], ebx
cmp eax, ebx
mov dword [esp + 0x24], vtable.RC::RCInternetHandle.0
je 0x1001d3f6
push eax
call esi
mov dword [esp + 0x28], ebx
cmp ebp, ebx
je 0x1001d3fd
push ebp
call esi
xor al, al
jmp 0x1001d737
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [esp + 0x10], 4
je 0x1001d431
push ebx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x4c]
push edx
push 0x20000013
push eax
call esi
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x44], 0xc8
je 0x1001d47a
cmp dword [edi + 0x1c], ebx
je 0x1001d45f
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x30], esp
push 0x200
mov ecx, edi
call fcn.1001d760
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
call edx
lea ecx, [esp + 0x24]
call fcn.100010a0
cmp ebp, ebx
je 0x1001d473
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x1001d737
cmp eax, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], 4
je 0x1001d4a5
push ebx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x20000005
push eax
call esi
mov esi, dword [esp + 0x18]
cmp esi, ebx
jne 0x1001d4e4
cmp dword [edi + 0x1c], ebx
je 0x1001d4c9
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x30], esp
push 0x200
mov ecx, edi
call fcn.1001d760
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
call edx
lea ecx, [esp + 0x24]
call fcn.100010a0
cmp ebp, ebx
je 0x1001d473
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x1001d737
mov ecx, dword [edi + 0x1c]
cmp ecx, ebx
je 0x1001d505
mov edx, dword [esp + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
push ebx
push esi
push edx
mov edx, dword [esp + 0x10d4]
push edx
call eax
mov esi, dword [esp + 0x18]
push 0xfff
lea ecx, [esp + 0xb1]
push ebx
push ecx
mov dword [esp + 0x44], ebx
mov byte [esp + 0xb8], bl
call sub.MSVCR80.dll_memset
xor ebp, ebp
add esp, 0xc
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
fldz
mov dword [esp + 0x4c], eax
fst qword [esp + 0x64]
mov dword [esp + 0x50], eax
fstp qword [esp + 0x6c]
mov eax, dword [esp + 0x18]
cmp eax, ebx
jbe 0x1001d6b1
lea esp, [esp]
mov ecx, dword [edi + 0x1c]
cmp ecx, ebx
je 0x1001d576
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
call eax
test al, al
jne 0x1001d63d
lea ecx, [esp + 0xac]
push ecx
lea esi, [esp + 0x50]
lea eax, [esp + 0x28]
call fcn.10001de0
mov ebp, dword [esp + 0x5c]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001d5a1
cmp dword [edi + 0x1c], ebx
jne 0x1001d6c0
jmp 0x1001d618
cmp esi, ebx
jbe 0x1001d606
mov ecx, dword [esp + 0x48]
push ebx
lea edx, [esp + 0x14]
push edx
push esi
lea eax, [esp + 0xb8]
push eax
push ecx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x10], esi
je 0x1001d5d2
cmp dword [edi + 0x1c], ebx
jne 0x1001d675
mov ecx, dword [edi + 0x1c]
cmp ecx, ebx
je 0x1001d618
mov eax, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
push ebp
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x10d4]
push eax
call edx
mov ecx, dword [edi + 0x1c]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
add edx, ebp
push edx
call eax
jmp 0x1001d618
jne 0x1001d6ad
push 5
call sub.KERNEL32.dll_Sleep
add dword [esp + 0x38], 1
cmp dword [esp + 0x38], 5
ja 0x1001d6ad
cmp dword [esp + 0x60], ebx
mov eax, dword [esp + 0x18]
jb 0x1001d560
ja 0x1001d6b1
cmp ebp, eax
jb 0x1001d560
jmp 0x1001d6b1
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x30], esp
push 0x1fc
mov ecx, edi
call fcn.1001d760
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
lea ecx, [esp + 0x24]
call fcn.100010a0
lea ecx, [esp + 0x3c]
call fcn.10004870
xor al, al
jmp 0x1001d737
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x30], esp
push 0x204
mov ecx, edi
call fcn.1001d760
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
lea ecx, [esp + 0x24]
call fcn.100010a0
lea ecx, [esp + 0x3c]
call fcn.10004870
xor al, al
jmp 0x1001d737
mov eax, dword [esp + 0x18]
cmp ebp, eax
jne 0x1001d6bb
cmp dword [esp + 0x60], ebx
je 0x1001d6f5
cmp dword [edi + 0x1c], ebx
je 0x1001d6df
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x30], esp
push 0x200
mov ecx, edi
call fcn.1001d760
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
lea ecx, [esp + 0x24]
call fcn.100010a0
lea ecx, [esp + 0x3c]
call fcn.10004870
xor al, al
jmp 0x1001d737
mov ecx, dword [edi + 0x1c]
add dword [edi + 0x34], eax
cmp ecx, ebx
je 0x1001d723
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
push eax
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x10d4]
push eax
call edx
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov edx, dword [edi + 0x34]
mov eax, dword [eax + 0x24]
push edx
call eax
lea ecx, [esp + 0x24]
call fcn.100010a0
lea ecx, [esp + 0x3c]
call fcn.10004870
mov al, 1
mov ecx, dword [esp + 0x10b4]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x109c]
xor ecx, esp
call fcn.1003ec9d
add esp, 0x10b0
ret 0xc