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

Disassembly:
push 0x194
mov eax, 0x498cce
call fcn.00601238
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.005843fd
push ecx
push ecx
xor edi, edi
mov ecx, eax
mov dword [ebp - 4], edi
call fcn.00583f49
push eax
lea ecx, [ebp - 0x6c]
call fcn.00589c99
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 2
call fcn.0058441c
push ecx
push ecx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00589b69
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
call fcn.00589b04
cmp eax, 0xc8
jne 0x5815ad
cmp byte [ebp + 0x1c], 0
jne 0x5814d8
lea ecx, [ebp - 0x6c]
call fcn.00589a5d
push eax
lea ecx, [ebp - 0x184]
call fcn.00589aef
mov byte [ebp - 4], 4
mov esi, 0x4be5e4
mov eax, dword [0x4be5e0]
test al, 1
jne 0x58115e
or eax, 1
mov dword [0x4be5e0], eax
push 0x4a2ce8
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.0058a682
push 0x49b78b
call fcn.005fba7f
pop ecx
mov byte [ebp - 4], 4
push edi
mov ecx, esi
call fcn.00583f49
push eax
lea ecx, [ebp - 0x184]
call fcn.00583fb5
mov dword [ebp - 0x178], eax
cmp eax, 0xffffffff
je 0x581384
push eax
push 0x4a2d14
lea ecx, [ebp - 0x184]
call fcn.00583fb5
mov esi, eax
cmp esi, 0xffffffff
jne 0x5811a6
lea ecx, [ebp - 0x184]
call fcn.005848e4
mov esi, eax
mov ecx, 0x4be5e4
call fcn.005848e4
sub esi, dword [ebp - 0x178]
mov ecx, 0x4be5e4
sub esi, eax
push esi
call fcn.005848e4
add eax, dword [ebp - 0x178]
lea ecx, [ebp - 0x184]
push eax
lea eax, [ebp - 0x178]
push eax
call fcn.005840d1
mov byte [ebp - 4], 6
mov esi, 0x4be5e8
mov eax, dword [0x4be5e0]
test al, 2
jne 0x581215
or eax, 2
mov dword [0x4be5e0], eax
push 0x4a2d1c
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.00589c55
push 0x49b781
call fcn.005fba7f
pop ecx
mov byte [ebp - 4], 6
push edi
mov ecx, esi
call fcn.00583f49
push eax
lea ecx, [ebp - 0x178]
call fcn.00583fb5
mov esi, eax
mov dword [ebp - 0x17c], esi
cmp esi, 0xffffffff
je 0x581375
mov ecx, 0x4be5e8
call fcn.005848e4
add eax, esi
push eax
push ecx
lea ecx, [ebp - 0x178]
call fcn.00583f6c
mov esi, eax
cmp esi, 0xffffffff
jne 0x581267
lea ecx, [ebp - 0x178]
call fcn.005848e4
mov esi, eax
mov ecx, 0x4be5e8
call fcn.005848e4
sub esi, dword [ebp - 0x17c]
mov ecx, 0x4be5e8
sub esi, eax
push esi
call fcn.005848e4
add eax, dword [ebp - 0x17c]
lea ecx, [ebp - 0x178]
push eax
lea eax, [ebp - 0x1a0]
push eax
call fcn.005840d1
push ecx
push 0x3b
push 0x20
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.00584052
mov ecx, eax
call fcn.00584052
mov ecx, eax
call fcn.00584040
push eax
lea ecx, [ebp - 0x17c]
call fcn.00589aef
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 0xa
call fcn.00583f2f
lea ecx, [ebp - 0x17c]
call fcn.00583f49
push ecx
mov esi, eax
lea ecx, [ebp - 0xf4]
push esi
call fcn.005843fd
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.00583f49
mov ecx, dword [ebp - 0x18c]
push eax
call fcn.00583f34
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 0xa
call fcn.0058441c
push ecx
push esi
lea ecx, [ebp - 0x174]
call fcn.005841df
push ecx
push dword [ebp - 0x188]
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.00583f49
push eax
lea ecx, [ebp - 0x19c]
call fcn.00589a1b
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.005846b2
push eax
mov ecx, ebx
call fcn.0058a66d
lea ecx, [ebp - 0x19c]
call fcn.00589969
lea ecx, [ebp - 0x174]
call fcn.0058441c
lea ecx, [ebp - 0x17c]
call fcn.00583f2f
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 4
call fcn.00583f2f
mov esi, dword [ebp - 0x18c]
mov ecx, esi
call fcn.00583f4c
test al, al
jne 0x5813a4
mov ecx, ebx
call fcn.00583f4c
test al, al
je 0x5814c7
push dword [ebp - 0x180]
lea ecx, [ebp - 0x178]
call fcn.0058a682
push 0x3f
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 0xe
call fcn.0058400c
cmp eax, 0xffffffff
je 0x5813fd
push eax
lea eax, [ebp - 0x180]
push eax
lea ecx, [ebp - 0x178]
call fcn.0058416c
push eax
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 0xf
call fcn.00583f57
lea ecx, [ebp - 0x180]
mov byte [ebp - 4], 0xe
call fcn.00583f2f
push 0x2f
lea ecx, [ebp - 0x178]
call fcn.0058400c
cmp eax, 0xffffffff
je 0x5814bc
inc eax
lea ecx, [ebp - 0x178]
push eax
lea eax, [ebp - 0x180]
push eax
call fcn.005840a6
push eax
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 0x10
call fcn.00583f57
lea ecx, [ebp - 0x180]
mov byte [ebp - 4], 0xe
call fcn.00583f2f
push ecx
lea ecx, [ebp - 0x178]
call fcn.00583f49
push eax
lea ecx, [ebp - 0xf4]
call fcn.005843fd
mov ecx, eax
mov byte [ebp - 4], 0x11
call fcn.00583f49
push eax
mov ecx, esi
call fcn.00583f34
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 0xe
call fcn.0058441c
push ecx
push dword [ebp - 0x188]
lea ecx, [ebp - 0x178]
call fcn.00583f49
push eax
lea ecx, [ebp - 0x19c]
call fcn.00589a1b
mov ecx, eax
mov byte [ebp - 4], 0x12
call fcn.005846b2
push eax
mov ecx, ebx
call fcn.0058a66d
lea ecx, [ebp - 0x19c]
call fcn.00589969
lea ecx, [ebp - 0x178]
call fcn.00583f2f
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 3
call fcn.00583f2f
jmp 0x5814de
mov esi, dword [ebp - 0x18c]
mov ecx, esi
call fcn.00583f4c
test al, al
jne 0x5814f4
mov ecx, ebx
call fcn.00583f4c
test al, al
je 0x58155e
push ecx
push dword [ebp - 0x194]
lea ecx, [ebp - 0xf4]
call fcn.005843fd
mov ecx, eax
mov byte [ebp - 4], 0x13
call fcn.00583f49
push eax
mov ecx, esi
call fcn.00583f34
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 3
call fcn.0058441c
push ecx
push dword [ebp - 0x188]
lea ecx, [ebp - 0x19c]
push dword [ebp - 0x194]
call fcn.00589a1b
mov ecx, eax
mov byte [ebp - 4], 0x14
call fcn.005846b2
push eax
mov ecx, ebx
call fcn.0058a66d
lea ecx, [ebp - 0x19c]
call fcn.00589969
push 0x4a2d28
mov ecx, ebx
call fcn.00583f49
push eax
lea eax, [ebp - 0x190]
push eax
call fcn.005fc02a
add esp, 0xc
test eax, eax
jne 0x5815ad
push dword [ebp - 0x190]
lea ecx, [ebp - 0x2c]
push 1
call fcn.00583f17
push eax
lea ecx, [ebp - 0x2c]
call fcn.0058a91d
push eax
call fcn.005fc292
push dword [ebp - 0x190]
call fcn.005fc380
add esp, 0x14
jmp 0x5815b2
mov edi, 0x80004005
lea ecx, [ebp - 0x2c]
call fcn.0058aa2f
lea ecx, [ebp - 0x6c]
call fcn.00589bad
mov eax, edi
call fcn.006011e7
ret 0x18