Function at 0x3d106e
Capabilities:
Check http status code
Write file on windows

Disassembly:
push 0x194
mov eax, 0x498cce
call fcn.00451238
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x194], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x180], edi
mov dword [ebp - 0x18c], eax
call dword [0x49c2ec]
push ecx
push edi
lea ecx, [ebp - 0xf4]
mov dword [esi + 0x30], eax
call fcn.003d43fd
push ecx
push ecx
xor edi, edi
mov ecx, eax
mov dword [ebp - 4], edi
call fcn.003d3f49
push eax
lea ecx, [ebp - 0x6c]
call fcn.003d9c99
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 2
call fcn.003d441c
push ecx
push ecx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x6c]
call fcn.003d9b69
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
call fcn.003d9b04
cmp eax, 0xc8
jne 0x3d15ad
cmp byte [ebp + 0x1c], 0
jne 0x3d14d8
lea ecx, [ebp - 0x6c]
call fcn.003d9a5d
push eax
lea ecx, [ebp - 0x184]
call fcn.003d9aef
mov byte [ebp - 4], 4
mov esi, 0x4be5e4
mov eax, dword [0x4be5e0]
test al, 1
jne 0x3d115e
or eax, 1
mov dword [0x4be5e0], eax
push 0x4a2ce8
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.003da682
push 0x49b78b
call fcn.0044ba7f
pop ecx
mov byte [ebp - 4], 4
push edi
mov ecx, esi
call fcn.003d3f49
push eax
lea ecx, [ebp - 0x184]
call fcn.003d3fb5
mov dword [ebp - 0x178], eax
cmp eax, 0xffffffff
je 0x3d1384
push eax
push 0x4a2d14
lea ecx, [ebp - 0x184]
call fcn.003d3fb5
mov esi, eax
cmp esi, 0xffffffff
jne 0x3d11a6
lea ecx, [ebp - 0x184]
call fcn.003d48e4
mov esi, eax
mov ecx, 0x4be5e4
call fcn.003d48e4
sub esi, dword [ebp - 0x178]
mov ecx, 0x4be5e4
sub esi, eax
push esi
call fcn.003d48e4
add eax, dword [ebp - 0x178]
lea ecx, [ebp - 0x184]
push eax
lea eax, [ebp - 0x178]
push eax
call fcn.003d40d1
mov byte [ebp - 4], 6
mov esi, 0x4be5e8
mov eax, dword [0x4be5e0]
test al, 2
jne 0x3d1215
or eax, 2
mov dword [0x4be5e0], eax
push 0x4a2d1c
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.003d9c55
push 0x49b781
call fcn.0044ba7f
pop ecx
mov byte [ebp - 4], 6
push edi
mov ecx, esi
call fcn.003d3f49
push eax
lea ecx, [ebp - 0x178]
call fcn.003d3fb5
mov esi, eax
mov dword [ebp - 0x17c], esi
cmp esi, 0xffffffff
je 0x3d1375
mov ecx, 0x4be5e8
call fcn.003d48e4
add eax, esi
push eax
push ecx
lea ecx, [ebp - 0x178]
call fcn.003d3f6c
mov esi, eax
cmp esi, 0xffffffff
jne 0x3d1267
lea ecx, [ebp - 0x178]
call fcn.003d48e4
mov esi, eax
mov ecx, 0x4be5e8
call fcn.003d48e4
sub esi, dword [ebp - 0x17c]
mov ecx, 0x4be5e8
sub esi, eax
push esi
call fcn.003d48e4
add eax, dword [ebp - 0x17c]
lea ecx, [ebp - 0x178]
push eax
lea eax, [ebp - 0x1a0]
push eax
call fcn.003d40d1
push ecx
push 0x3b
push 0x20
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.003d4052
mov ecx, eax
call fcn.003d4052
mov ecx, eax
call fcn.003d4040
push eax
lea ecx, [ebp - 0x17c]
call fcn.003d9aef
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 0xa
call fcn.003d3f2f
lea ecx, [ebp - 0x17c]
call fcn.003d3f49
push ecx
mov esi, eax
lea ecx, [ebp - 0xf4]
push esi
call fcn.003d43fd
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.003d3f49
mov ecx, dword [ebp - 0x18c]
push eax
call fcn.003d3f34
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 0xa
call fcn.003d441c
push ecx
push esi
lea ecx, [ebp - 0x174]
call fcn.003d41df
push ecx
push dword [ebp - 0x188]
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.003d3f49
push eax
lea ecx, [ebp - 0x19c]
call fcn.003d9a1b
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.003d46b2
push eax
mov ecx, ebx
call fcn.003da66d
lea ecx, [ebp - 0x19c]
call fcn.003d9969
lea ecx, [ebp - 0x174]
call fcn.003d441c
lea ecx, [ebp - 0x17c]
call fcn.003d3f2f
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 4
call fcn.003d3f2f
mov esi, dword [ebp - 0x18c]
mov ecx, esi
call fcn.003d3f4c
test al, al
jne 0x3d13a4
mov ecx, ebx
call fcn.003d3f4c
test al, al
je 0x3d14c7
push dword [ebp - 0x180]
lea ecx, [ebp - 0x178]
call fcn.003da682
push 0x3f
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 0xe
call fcn.003d400c
cmp eax, 0xffffffff
je 0x3d13fd
push eax
lea eax, [ebp - 0x180]
push eax
lea ecx, [ebp - 0x178]
call fcn.003d416c
push eax
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 0xf
call fcn.003d3f57
lea ecx, [ebp - 0x180]
mov byte [ebp - 4], 0xe
call fcn.003d3f2f
push 0x2f
lea ecx, [ebp - 0x178]
call fcn.003d400c
cmp eax, 0xffffffff
je 0x3d14bc
inc eax
lea ecx, [ebp - 0x178]
push eax
lea eax, [ebp - 0x180]
push eax
call fcn.003d40a6
push eax
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 0x10
call fcn.003d3f57
lea ecx, [ebp - 0x180]
mov byte [ebp - 4], 0xe
call fcn.003d3f2f
push ecx
lea ecx, [ebp - 0x178]
call fcn.003d3f49
push eax
lea ecx, [ebp - 0xf4]
call fcn.003d43fd
mov ecx, eax
mov byte [ebp - 4], 0x11
call fcn.003d3f49
push eax
mov ecx, esi
call fcn.003d3f34
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 0xe
call fcn.003d441c
push ecx
push dword [ebp - 0x188]
lea ecx, [ebp - 0x178]
call fcn.003d3f49
push eax
lea ecx, [ebp - 0x19c]
call fcn.003d9a1b
mov ecx, eax
mov byte [ebp - 4], 0x12
call fcn.003d46b2
push eax
mov ecx, ebx
call fcn.003da66d
lea ecx, [ebp - 0x19c]
call fcn.003d9969
lea ecx, [ebp - 0x178]
call fcn.003d3f2f
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 3
call fcn.003d3f2f
jmp 0x3d14de
mov esi, dword [ebp - 0x18c]
mov ecx, esi
call fcn.003d3f4c
test al, al
jne 0x3d14f4
mov ecx, ebx
call fcn.003d3f4c
test al, al
je 0x3d155e
push ecx
push dword [ebp - 0x194]
lea ecx, [ebp - 0xf4]
call fcn.003d43fd
mov ecx, eax
mov byte [ebp - 4], 0x13
call fcn.003d3f49
push eax
mov ecx, esi
call fcn.003d3f34
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 3
call fcn.003d441c
push ecx
push dword [ebp - 0x188]
lea ecx, [ebp - 0x19c]
push dword [ebp - 0x194]
call fcn.003d9a1b
mov ecx, eax
mov byte [ebp - 4], 0x14
call fcn.003d46b2
push eax
mov ecx, ebx
call fcn.003da66d
lea ecx, [ebp - 0x19c]
call fcn.003d9969
push 0x4a2d28
mov ecx, ebx
call fcn.003d3f49
push eax
lea eax, [ebp - 0x190]
push eax
call fcn.0044c02a
add esp, 0xc
test eax, eax
jne 0x3d15ad
push dword [ebp - 0x190]
lea ecx, [ebp - 0x2c]
push 1
call fcn.003d3f17
push eax
lea ecx, [ebp - 0x2c]
call fcn.003da91d
push eax
call fcn.0044c292
push dword [ebp - 0x190]
call fcn.0044c380
add esp, 0x14
jmp 0x3d15b2
mov edi, 0x80004005
lea ecx, [ebp - 0x2c]
call fcn.003daa2f
lea ecx, [ebp - 0x6c]
call fcn.003d9bad
mov eax, edi
call fcn.004511e7
ret 0x18