Function at 0x401226
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push edi
or dword [ebp - 0x114], 0xffffffff
and dword [ebp - 0x124], 0
mov al, byte [0x411768]
mov byte [ebp - 0x10c], al
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and dword [ebp - 8], 0
mov dword [ebp - 0x128], 4
and dword [ebp - 4], 0
and dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 1
and dword [ebp - 0x110], 0
and dword [ebp - 0x12c], 0
and dword [ebp - 0x118], 0
xor eax, eax
test eax, eax
je 0x401299
jmp 0x401291
and dword [ebp - 0x124], 0
jmp 0x4012af
mov eax, dword [ebp - 0x124]
inc eax
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 2
jge 0x4013c6
and dword [ebp - 0x138], 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x124]
push dword [ebp + eax*4 - 0x120]
push dword [0x40e7bc]
call dword [0x4221d4]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x4012fb
xor eax, eax
test eax, eax
je 0x4012f9
jmp 0x4012f1
jmp 0x4012a2
xor eax, eax
test eax, eax
je 0x401303
jmp 0x4012fb
mov dword [ebp - 0x138], 3
push 4
lea eax, [ebp - 0x138]
push eax
push 3
push dword [ebp - 0x12c]
call dword [0x4221f4]
test eax, eax
jne 0x401332
xor eax, eax
test eax, eax
je 0x401330
jmp 0x401328
jmp 0x40133a
xor eax, eax
test eax, eax
je 0x40133a
jmp 0x401332
mov dword [ebp - 0x138], 0x9c40
push 4
lea eax, [ebp - 0x138]
push eax
push 2
push dword [ebp - 0x12c]
call dword [0x4221f4]
test eax, eax
jne 0x401369
xor eax, eax
test eax, eax
je 0x401367
jmp 0x40135f
jmp 0x401371
xor eax, eax
test eax, eax
je 0x401371
jmp 0x401369
push 0
push 0x4000100
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 0x12c]
call dword [0x4221c0]
mov dword [ebp - 0x118], eax
xor eax, eax
test eax, eax
je 0x401399
jmp 0x401391
cmp dword [ebp - 0x118], 0
jne 0x4013bf
xor eax, eax
test eax, eax
je 0x4013aa
jmp 0x4013a2
push dword [ebp - 0x12c]
call dword [0x4221f0]
and dword [ebp - 0x12c], 0
jmp 0x4013c1
jmp 0x4013c6
jmp 0x4012a2
cmp dword [ebp - 0x118], 0
jne 0x4013de
mov dword [ebp - 0x114], 0xfffffffe
jmp 0x401665
mov dword [ebp - 0x128], 8
push 8
push 0
lea eax, [ebp - 0x134]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x134]
push eax
push 0x13
push dword [ebp - 0x118]
call dword [0x4221b8]
test eax, eax
jne 0x401434
xor eax, eax
test eax, eax
je 0x401425
jmp 0x40141d
mov dword [ebp - 0x114], 0xfffffff8
jmp 0x401665
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
cmp eax, 0xc8
je 0x40146c
xor eax, eax
test eax, eax
je 0x401451
jmp 0x401449
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
neg eax
mov dword [ebp - 0x114], eax
jmp 0x401665
cmp dword [ebp + 0xc], 0
je 0x40148c
push 0x104
push dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp 0x4014db
push 0x2f
push dword [ebp + 8]
call fcn.00408754
pop ecx
pop ecx
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
je 0x4014c4
push 0x104
push dword [ebp - 0x13c]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp 0x4014db
xor eax, eax
test eax, eax
je 0x4014cc
jmp 0x4014c4
mov dword [ebp - 0x114], 0xfffffffc
jmp 0x401665
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x10c]
push eax
call dword [0x4222a4]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0xffffffff
jne 0x40151d
xor eax, eax
test eax, eax
je 0x40150e
jmp 0x401506
mov dword [ebp - 0x114], 0xfffffffb
jmp 0x401665
mov dword [ebp - 4], 0x10000
push 1
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_calloc]
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401551
xor eax, eax
test eax, eax
je 0x401542
jmp 0x40153a
mov dword [ebp - 0x114], 0xfffffff9
jmp 0x401665
push 1
pop eax
test eax, eax
je 0x401621
and dword [ebp - 0x144], 0
and dword [ebp - 0x140], 0
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0x118]
call dword [0x4221c4]
test eax, eax
jne 0x40159e
xor eax, eax
test eax, eax
je 0x40158f
jmp 0x401587
mov dword [ebp - 0x114], 0xfffffffd
jmp 0x401665
cmp dword [ebp - 0x140], 0
jne 0x4015a9
jmp 0x401621
xor eax, eax
test eax, eax
je 0x4015b1
jmp 0x4015a9
and dword [ebp - 0x148], 0
push 0
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp - 0x140]
sub eax, dword [ebp - 0x144]
push eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x144]
push eax
push dword [ebp - 0x110]
call dword [0x42227c]
test eax, eax
jne 0x4015fc
xor eax, eax
test eax, eax
je 0x4015f0
jmp 0x4015e8
mov dword [ebp - 0x114], 0xfffffffa
jmp 0x401665
mov eax, dword [ebp - 0x144]
add eax, dword [ebp - 0x148]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
cmp eax, dword [ebp - 0x140]
jb 0x4015b1
jmp 0x401551
push dword [ebp - 0x110]
call dword [0x422194]
push dword [ebp - 0x118]
call dword [0x4221f0]
push dword [ebp - 0x12c]
call dword [0x4221f0]
cmp dword [ebp - 8], 0
je 0x401659
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
and dword [ebp - 8], 0
xor eax, eax
test eax, eax
je 0x401661
jmp 0x401659
xor eax, eax
jmp 0x4016d4
cmp dword [ebp - 8], 0
je 0x401679
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
and dword [ebp - 8], 0
cmp dword [ebp - 0x118], 0
je 0x40168e
push dword [ebp - 0x118]
call dword [0x4221f0]
cmp dword [ebp - 0x12c], 0
je 0x4016a3
push dword [ebp - 0x12c]
call dword [0x4221f0]
cmp dword [ebp - 0x110], 0
je 0x4016ce
cmp dword [ebp - 0x110], 0xffffffff
je 0x4016ce
push dword [ebp - 0x110]
call dword [0x422194]
lea eax, [ebp - 0x10c]
push eax
call dword [0x422240]
mov eax, dword [ebp - 0x114]
pop edi
leave
ret