Function at 0x409060
Capabilities:
Check http status code

Disassembly:
sub esp, 0x28
mov ax, word [0x97e72a]
mov ecx, dword [0x951934]
add ax, word [0x97e6f2]
push ebx
or ebx, 0xffffffff
add ecx, 0x22049
movsx eax, ax
push ebp
mov word [0x418c0a], bx
xor edx, edx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov dword [ecx], 0
push edi
mov dword [esp + 0x14], edx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], edx
push str._04d
push ecx
mov word [esp + 0x28], dx
call esi
mov eax, dword [0x951934]
mov edx, dword [esp + 0x20]
add esp, 0xc
xor ecx, ecx
mov dword [eax + 0x22049], edx
mov dword [esp + 0x14], ecx
movsx edx, word [0x97e6f4]
push edx
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], ecx
push str._04d
push eax
mov word [esp + 0x28], cx
call esi
mov ecx, dword [0x951934]
mov edx, dword [esp + 0x20]
xor eax, eax
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
mov dword [ecx + 0x221ad], edx
mov ecx, dword [0x951934]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov word [esp + 0x34], ax
mov dx, word [ecx + 0x22068]
lea eax, [esp + 0x2c]
mov word [esp + 0x2c], dx
push eax
call esi
mov edx, dword [0x951934]
xor ecx, ecx
mov dword [esp + 0x24], ecx
add edx, 0x22051
mov dword [esp + 0x28], ecx
mov edi, eax
mov word [esp + 0x2c], cx
mov ax, word [edx]
mov word [esp + 0x24], ax
mov dword [esp + 0x20], ebx
mov cl, byte [edx + 2]
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x2a], cl
call esi
mov ebp, eax
add esp, 0x14
movsx eax, di
xor ebx, ebx
lea edi, [eax + eax*4]
shl edi, 2
xor eax, eax
mov ecx, dword [0x951934]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
movsx eax, bx
add eax, edi
lea edx, [ecx + eax*2]
lea eax, [eax + edx + 0x21ad0]
mov cx, word [eax]
mov word [esp + 0x14], cx
mov dl, byte [eax + 2]
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x1a], dl
call esi
add esp, 4
cmp bp, ax
je 0x4091ba
inc ebx
cmp bx, 0x14
jl 0x40916f
jmp 0x4091c2
mov dword [esp + 0x10], 0
mov eax, dword [0x951934]
xor ecx, ecx
mov dword [esp + 0x14], ecx
or ebp, 0xffffffff
mov dword [esp + 0x18], ecx
mov word [esp + 0x1c], cx
mov edx, dword [eax + 0x221ad]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x30], ecx
mov word [esp + 0x34], cx
mov edx, dword [eax + 0x22041]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], ecx
mov word [esp + 0x28], cx
mov edx, dword [eax + 0x22045]
lea eax, [esp + 0x14]
mov dword [esp + 0x20], edx
push eax
call esi
lea ecx, [esp + 0x30]
mov edi, eax
push ecx
call esi
lea edx, [esp + 0x28]
mov ebx, eax
push edx
call esi
add esp, 0xc
cmp bx, di
jg 0x409239
cmp di, ax
jg 0x409239
xor ebp, ebp
mov eax, dword [0x951934]
mov bl, 0x31
cmp byte [eax + 0x221a9], bl
jne 0x40924b
or ebp, 0xffffffff
xor ecx, ecx
add eax, 0x22051
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov word [esp + 0x1c], cx
mov dx, word [eax]
mov word [esp + 0x14], dx
lea ecx, [esp + 0x14]
mov al, byte [eax + 2]
push ecx
mov byte [esp + 0x1a], al
call esi
add esp, 4
cmp ax, 1
je 0x409424
cmp ax, 2
je 0x409424
cmp ax, 3
je 0x409424
cmp ax, 4
je 0x409424
cmp ax, 5
je 0x409424
cmp ax, 6
je 0x409424
cmp ax, 7
je 0x409424
cmp ax, 8
je 0x409424
cmp ax, 9
je 0x409424
cmp ax, 0xa
je 0x409424
cmp ax, 0xb
je 0x409424
cmp ax, 0xc
je 0x409424
cmp ax, 0xd
je 0x409424
cmp ax, 0xe
je 0x409424
cmp ax, 0xf
je 0x409424
cmp ax, 0x11
je 0x409424
cmp ax, 0x12
je 0x409424
cmp ax, 0x13
je 0x409424
cmp ax, 0x14
je 0x409424
cmp ax, 0x15
je 0x409424
cmp ax, 0x16
je 0x409424
cmp ax, 0x17
je 0x409424
cmp ax, 0x19
je 0x409424
cmp ax, 0x1a
je 0x409424
cmp ax, 0x1b
je 0x409424
cmp ax, 0x1d
je 0x409424
cmp ax, 0x21
je 0x409424
cmp ax, 0x22
je 0x409424
cmp ax, 0x23
je 0x409424
cmp ax, 0x24
je 0x409424
cmp ax, 0x25
je 0x409424
cmp ax, 0x26
je 0x409424
cmp ax, 0x27
je 0x409424
cmp ax, 0x28
je 0x409424
cmp ax, 0x29
je 0x409424
cmp ax, 0x2a
je 0x409424
cmp ax, 0x2c
je 0x409424
cmp ax, 0x2d
je 0x409424
cmp ax, 0x51
je 0x409424
cmp ax, 0x52
je 0x409424
cmp ax, 0x53
je 0x409424
cmp ax, 0x54
je 0x409424
cmp ax, 0x55
je 0x409424
cmp ax, 0x56
je 0x409424
cmp ax, 0x57
je 0x409424
cmp ax, 0xc8
jge 0x409424
mov edx, dword [0x951934]
pop edi
pop esi
pop ebp
mov byte [edx + 0x2204f], bl
mov word [0x418c0a], 0
xor ax, ax
pop ebx
add esp, 0x28
ret
mov eax, dword [0x951934]
cmp word [esp + 0x10], 0
mov byte [eax + 0x2204f], 0x30
jne 0x409446
test bp, bp
mov word [0x418c0a], 0
je 0x40944f
mov word [0x418c0a], 0xffff
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0x28
ret