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

Disassembly:
push 0x194
mov eax, 0x498cce
call fcn.00481e38
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 [sym.imp.KERNEL32.dll_GetTickCount]
push ecx
push edi
lea ecx, [ebp - 0xf4]
mov dword [esi + 0x30], eax
call fcn.00404ffd
push ecx
push ecx
xor edi, edi
mov ecx, eax
mov dword [ebp - 4], edi
call fcn.00404b49
push eax
lea ecx, [ebp - 0x6c]
call fcn.0040a899
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 2
call fcn.0040501c
push ecx
push ecx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0040a769
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
call fcn.0040a704
cmp eax, 0xc8
jne 0x4021ad
cmp byte [ebp + 0x1c], 0
jne 0x4020d8
lea ecx, [ebp - 0x6c]
call fcn.0040a65d
push eax
lea ecx, [ebp - 0x184]
call fcn.0040a6ef
mov byte [ebp - 4], 4
mov esi, 0x4be5e4
mov eax, dword [0x4be5e0]
test al, 1
jne 0x401d5e
or eax, 1
mov dword [0x4be5e0], eax
push str.Content_Disposition:
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.0040b282
push 0x49b78b
call fcn.0047c67f
pop ecx
mov byte [ebp - 4], 4
push edi
mov ecx, esi
call fcn.00404b49
push eax
lea ecx, [ebp - 0x184]
call fcn.00404bb5
mov dword [ebp - 0x178], eax
cmp eax, 0xffffffff
je 0x401f84
push eax
push 0x4a2d14
lea ecx, [ebp - 0x184]
call fcn.00404bb5
mov esi, eax
cmp esi, 0xffffffff
jne 0x401da6
lea ecx, [ebp - 0x184]
call fcn.004054e4
mov esi, eax
mov ecx, 0x4be5e4
call fcn.004054e4
sub esi, dword [ebp - 0x178]
mov ecx, 0x4be5e4
sub esi, eax
push esi
call fcn.004054e4
add eax, dword [ebp - 0x178]
lea ecx, [ebp - 0x184]
push eax
lea eax, [ebp - 0x178]
push eax
call fcn.00404cd1
mov byte [ebp - 4], 6
mov esi, 0x4be5e8
mov eax, dword [0x4be5e0]
test al, 2
jne 0x401e15
or eax, 2
mov dword [0x4be5e0], eax
push 0x4a2d1c
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.0040a855
push 0x49b781
call fcn.0047c67f
pop ecx
mov byte [ebp - 4], 6
push edi
mov ecx, esi
call fcn.00404b49
push eax
lea ecx, [ebp - 0x178]
call fcn.00404bb5
mov esi, eax
mov dword [ebp - 0x17c], esi
cmp esi, 0xffffffff
je 0x401f75
mov ecx, 0x4be5e8
call fcn.004054e4
add eax, esi
push eax
push ecx
lea ecx, [ebp - 0x178]
call fcn.00404b6c
mov esi, eax
cmp esi, 0xffffffff
jne 0x401e67
lea ecx, [ebp - 0x178]
call fcn.004054e4
mov esi, eax
mov ecx, 0x4be5e8
call fcn.004054e4
sub esi, dword [ebp - 0x17c]
mov ecx, 0x4be5e8
sub esi, eax
push esi
call fcn.004054e4
add eax, dword [ebp - 0x17c]
lea ecx, [ebp - 0x178]
push eax
lea eax, [ebp - 0x1a0]
push eax
call fcn.00404cd1
push ecx
push 0x3b
push 0x20
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.00404c52
mov ecx, eax
call fcn.00404c52
mov ecx, eax
call fcn.00404c40
push eax
lea ecx, [ebp - 0x17c]
call fcn.0040a6ef
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 0xa
call fcn.00404b2f
lea ecx, [ebp - 0x17c]
call fcn.00404b49
push ecx
mov esi, eax
lea ecx, [ebp - 0xf4]
push esi
call fcn.00404ffd
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.00404b49
mov ecx, dword [ebp - 0x18c]
push eax
call fcn.00404b34
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 0xa
call fcn.0040501c
push ecx
push esi
lea ecx, [ebp - 0x174]
call fcn.00404ddf
push ecx
push dword [ebp - 0x188]
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.00404b49
push eax
lea ecx, [ebp - 0x19c]
call fcn.0040a61b
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.004052b2
push eax
mov ecx, ebx
call fcn.0040b26d
lea ecx, [ebp - 0x19c]
call fcn.0040a569
lea ecx, [ebp - 0x174]
call fcn.0040501c
lea ecx, [ebp - 0x17c]
call fcn.00404b2f
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 4
call fcn.00404b2f
mov esi, dword [ebp - 0x18c]
mov ecx, esi
call fcn.00404b4c
test al, al
jne 0x401fa4
mov ecx, ebx
call fcn.00404b4c
test al, al
je 0x4020c7
push dword [ebp - 0x180]
lea ecx, [ebp - 0x178]
call fcn.0040b282
push 0x3f
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 0xe
call fcn.00404c0c
cmp eax, 0xffffffff
je 0x401ffd
push eax
lea eax, [ebp - 0x180]
push eax
lea ecx, [ebp - 0x178]
call fcn.00404d6c
push eax
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 0xf
call fcn.00404b57
lea ecx, [ebp - 0x180]
mov byte [ebp - 4], 0xe
call fcn.00404b2f
push 0x2f
lea ecx, [ebp - 0x178]
call fcn.00404c0c
cmp eax, 0xffffffff
je 0x4020bc
inc eax
lea ecx, [ebp - 0x178]
push eax
lea eax, [ebp - 0x180]
push eax
call fcn.00404ca6
push eax
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 0x10
call fcn.00404b57
lea ecx, [ebp - 0x180]
mov byte [ebp - 4], 0xe
call fcn.00404b2f
push ecx
lea ecx, [ebp - 0x178]
call fcn.00404b49
push eax
lea ecx, [ebp - 0xf4]
call fcn.00404ffd
mov ecx, eax
mov byte [ebp - 4], 0x11
call fcn.00404b49
push eax
mov ecx, esi
call fcn.00404b34
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 0xe
call fcn.0040501c
push ecx
push dword [ebp - 0x188]
lea ecx, [ebp - 0x178]
call fcn.00404b49
push eax
lea ecx, [ebp - 0x19c]
call fcn.0040a61b
mov ecx, eax
mov byte [ebp - 4], 0x12
call fcn.004052b2
push eax
mov ecx, ebx
call fcn.0040b26d
lea ecx, [ebp - 0x19c]
call fcn.0040a569
lea ecx, [ebp - 0x178]
call fcn.00404b2f
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 3
call fcn.00404b2f
jmp 0x4020de
mov esi, dword [ebp - 0x18c]
mov ecx, esi
call fcn.00404b4c
test al, al
jne 0x4020f4
mov ecx, ebx
call fcn.00404b4c
test al, al
je 0x40215e
push ecx
push dword [ebp - 0x194]
lea ecx, [ebp - 0xf4]
call fcn.00404ffd
mov ecx, eax
mov byte [ebp - 4], 0x13
call fcn.00404b49
push eax
mov ecx, esi
call fcn.00404b34
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 3
call fcn.0040501c
push ecx
push dword [ebp - 0x188]
lea ecx, [ebp - 0x19c]
push dword [ebp - 0x194]
call fcn.0040a61b
mov ecx, eax
mov byte [ebp - 4], 0x14
call fcn.004052b2
push eax
mov ecx, ebx
call fcn.0040b26d
lea ecx, [ebp - 0x19c]
call fcn.0040a569
push 0x4a2d28
mov ecx, ebx
call fcn.00404b49
push eax
lea eax, [ebp - 0x190]
push eax
call fcn.0047cc2a
add esp, 0xc
test eax, eax
jne 0x4021ad
push dword [ebp - 0x190]
lea ecx, [ebp - 0x2c]
push 1
call fcn.00404b17
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040b51d
push eax
call fcn.0047ce92
push dword [ebp - 0x190]
call fcn.0047cf80
add esp, 0x14
jmp 0x4021b2
mov edi, 0x80004005
lea ecx, [ebp - 0x2c]
call fcn.0040b62f
lea ecx, [ebp - 0x6c]
call fcn.0040a7ad
mov eax, edi
call fcn.00481de7
ret 0x18