Function at 0x402760
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x408
mov eax, dword [0x4051c4]
push ebx
push ebp
push esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x420]
push edi
xor edi, edi
test eax, eax
mov dword [esp + 0x10], edi
jne 0x402794
pop edi
pop esi
pop ebp
mov eax, 0x15fa6
pop ebx
add esp, 0x408
ret
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, dword [sym.imp.MSVCRT.dll_strtok]
lea ecx, [esp + 0x14]
push ecx
push eax
call ebx
add esp, 8
test eax, eax
je 0x4027da
lea esi, [esp + 0x18]
cmp edi, 0x100
jge 0x4027d1
lea edx, [esp + 0x14]
mov dword [esi], eax
push edx
push 0
inc edi
add esi, 4
call ebx
add esp, 8
test eax, eax
jne 0x4027b3
cmp edi, 1
mov dword [esp + 0x10], edi
jg 0x4027ea
pop edi
pop esi
pop ebp
mov eax, 0x15fa7
pop ebx
add esp, 0x408
ret
mov esi, dword [esp + 0x41c]
mov ecx, 0x20
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
lea ebp, [esi + 0x84]
mov ecx, 0x20
mov edi, ebp
mov edx, dword [esp + 0x1c]
rep stosd dword es:[edi], eax
lea edi, [esi + 0x108]
mov ecx, 0x20
rep stosd dword es:[edi], eax
lea eax, [esi + 0x188]
xor ecx, ecx
lea edi, [esi + 0x194]
mov ebx, dword [sym.imp.MSVCRT.dll_atoi]
mov dword [eax], ecx
push edx
mov word [eax + 4], cx
mov ecx, 0x10
xor eax, eax
rep stosd dword es:[edi], eax
lea edi, [esi + 0x1d4]
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x438]
mov dword [edi], eax
call ebx
mov ecx, dword [esp + 0x430]
add esp, 4
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
cmp eax, 0x14
je 0x40287d
pop edi
pop esi
pop ebp
mov eax, 0x15fa7
pop ebx
add esp, 0x408
ret
mov edx, dword [esp + 0x20]
push edx
call ebx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x434]
push 4
push edx
push edi
mov edi, dword [sym.imp.MSVCRT.dll_strncpy]
mov dword [ecx], eax
call edi
mov eax, dword [esp + 0x38]
push eax
call ebx
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x43c]
push 0x7f
push edx
push esi
mov dword [ecx], eax
call edi
mov eax, dword [esp + 0x50]
push eax
call ebx
mov ecx, dword [esp + 0x58]
push 0x7f
push ecx
push ebp
mov dword [esi + 0x80], eax
call edi
mov edx, dword [esp + 0x68]
push edx
call ebx
mov dword [esi + 0x104], eax
mov eax, dword [esp + 0x70]
push 0x7f
push eax
lea eax, [esi + 0x108]
push eax
call edi
mov ecx, dword [esp + 0x80]
add esp, 0x40
lea eax, [esi + 0x188]
push 5
push ecx
push eax
call edi
mov edx, dword [esp + 0x50]
push edx
call ebx
mov dword [esi + 0x190], eax
mov eax, dword [esp + 0x58]
push 0x3f
push eax
lea eax, [esi + 0x194]
push eax
call edi
mov ecx, dword [esp + 0x68]
push 0x3f
lea eax, [esi + 0x1d4]
push ecx
push eax
call edi
mov edx, dword [esp + 0x78]
push 0x3f
lea eax, [esi + 0x214]
push edx
push eax
call edi
mov ecx, dword [esp + 0x88]
push ecx
call ebx
add esp, 0x38
sub eax, 0
je 0x40296c
dec eax
push 9
push str.HTTP_1.1
je 0x402963
lea edx, [esi + 0x254]
push edx
jmp 0x40297a
lea eax, [esi + 0x254]
push eax
jmp 0x40297a
push 9
lea ecx, [esi + 0x254]
push str.HTTP_1.0
push ecx
call edi
mov edx, dword [esp + 0x64]
add esp, 0xc
push edx
call ebx
mov dword [esi + 0x260], eax
mov eax, dword [esp + 0x60]
push eax
call ebx
mov ecx, dword [esp + 0x68]
mov dword [esi + 0x264], eax
push ecx
call ebx
mov ebp, dword [esp + 0x42c]
mov edx, dword [esp + 0x70]
mov ecx, 0x9b
mov edi, ebp
mov dword [esi + 0x268], eax
push edx
rep movsd dword es:[edi], dword [esi]
call ebx
add esp, 0x10
mov dword [ebp + 0x268], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x408
ret