Function at 0x40416d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push 1
push getpeername
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x4041b8
mov eax, 0x47ab56
push eax
push 3
mov ebx, 0x407e10
call fcn.004076e6
add esp, 0x28
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4041dd
jmp 0x4055c5
push 0x80000301
push 0
push 0x40
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x408000
call fcn.004076e6
add esp, 0x1c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40421c
push ebx
call fcn.004076da
add esp, 4
pop eax
mov dword [ebp - 8], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x404233
mov eax, 0x47ab5f
push eax
push 1
mov ebx, 0x407890
call fcn.004076e6
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x40
jne 0x4055a9
push reloc.WS2_32.dll_getpeername
push 0
lea eax, [ebp - 8]
push eax
push 1
mov eax, 2
mov ebx, 0x456c10
call fcn.004076f2
add esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push 0x40
push dword [ebp - 0x10]
mov eax, dword [0x4ad354]
push eax
push 0x40
call fcn.004076e0
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 4
mov esi, ebx
shl ecx, 1
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0xa
mov esi, ebx
shl ecx, 1
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, 2
call fcn.004076fe
cmp dword [ebp - 0x14], esp
je 0x4043a6
push 6
call fcn.004076f8
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
mov edi, dword [ebp - 0x1c]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 2
mov eax, 2
call fcn.004076d4
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x404476
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x404474
imul eax, dword [edi]
jmp 0x404469
mov ecx, eax
cmp ecx, 4
jle 0x404480
mov ecx, 4
mov esi, ebx
shl ecx, 1
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 8
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 2
mov eax, 2
call fcn.004076d4
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x4044d3
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x4044d1
imul eax, dword [edi]
jmp 0x4044c6
mov ecx, eax
cmp ecx, 0xa
jle 0x4044dd
mov ecx, 0xa
mov esi, ebx
shl ecx, 1
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x14
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.004076da
add esp, 4
mov ebx, dword [0x4ad354]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp word [ebx], 0x5a4d
jne 0x4055a9
mov ebx, dword [0x4ad354]
add ebx, 0x48
mov dword [ebp - 0x10], ebx
push 0x80000301
push 0
mov ebx, dword [ebp - 0x10]
push dword [ebx]
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x407fe0
call fcn.004076e6
add esp, 0x28
push 0x80000301
push 0
push 0xf8
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x408000
call fcn.004076e6
add esp, 0x1c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x404593
push ebx
call fcn.004076da
add esp, 4
pop eax
mov dword [ebp - 8], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4045aa
mov eax, 0x47ab5f
push eax
push 1
mov ebx, 0x407890
call fcn.004076e6
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xf8
jne 0x4055a9
push reloc.WS2_32.dll_getpeername
push 0
lea eax, [ebp - 8]
push eax
push 1
mov eax, 2
mov ebx, 0x456c10
call fcn.004076f2
add esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push 0xf8
push dword [ebp - 0x10]
mov eax, dword [0x4ad348]
push eax
push 0xf8
call fcn.004076e0
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov byte [edi], al
inc edi
mov eax, dword [ebx]
add ebx, 4
mov byte [edi], al
inc edi
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ecx, 0x10
mov ebx, dword [ebx]
add ebx, 8
push ebx
push ecx
mov ebx, dword [ebx]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ecx
pop ebx
add ebx, 4
dec ecx
jne 0x4047b7
pop ebx
add ebx, 4
pop ebx
add ebx, 4
mov eax, 3
call fcn.004076fe
cmp dword [ebp - 0x14], esp
je 0x4047ff
push 6
call fcn.004076f8
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push edi
mov edi, dword [edi]
push ebx
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
pop ebx
add ebx, 0x14
pop edi
add edi, 4
push edi
mov edi, dword [edi]
push ebx
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov al, byte [ebx]
inc ebx
mov dword [edi], eax
add edi, 4
mov al, byte [ebx]
inc ebx
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push edi
mov edi, dword [edi]
mov ecx, 0x10
add edi, 8
push ebx
push edi
push ecx
mov edi, dword [edi]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ecx
pop edi
pop ebx
add edi, 4
add ebx, 8
dec ecx
jne 0x4049ac
pop edi
add edi, 4
pop ebx
add ebx, 0xe0
pop edi
add edi, 4
call fcn.004076da
add esp, 4
mov ebx, dword [0x4ad348]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0x4550
jne 0x4055a9
mov ebx, dword [0x4ad348]
mov ebx, dword [ebx + 8]
mov ebx, dword [ebx + 0x78]
call fcn.00401010
mov eax, 1
cmp eax, ecx
jl 0x404a2e
push 1
call fcn.004076f8
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0
jle 0x4055a9
mov ebx, dword [0x4ad348]
mov ebx, dword [ebx + 4]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], 1
mov ebx, dword [ebp - 0x10]
mov ax, word [ebx]
cwde
cmp eax, 0
jge 0x404a76
push 0xa
call fcn.004076f8
add esp, 4
mov dword [ebp - 0x14], eax
lea ebx, [ebp - 0x18]
call fcn.00401010
push ecx
shl ecx, 2
add ecx, 8
push ecx
call fcn.004076e0
add esp, 4
mov edi, eax
mov dword [edi], 1
add edi, 4
pop ecx
push eax
push ecx
lea esi, [ebp - 0x14]
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov ebx, dword [0x4ad34c]
call fcn.00401010
pop edx
test ecx, ecx
je 0x404ade
push edi
push edx
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.004076da
add esp, 4
pop ebx
call fcn.004076da
add esp, 4
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x404aba
pop edx
pop edi
test edx, edx
je 0x404b30
mov ebx, edi
push edx
push ebx
push 0x28
call fcn.004076e0
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0xa
rep stosd dword es:[edi], eax
push ebx
push 0x10
call fcn.004076e0
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x47ab8e
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ebx
pop edx
add ebx, 4
dec edx
jne 0x404ae8
push dword [0x4ad34c]
call fcn.004076da
add esp, 4
pop eax
mov dword [0x4ad34c], eax
mov ebx, dword [0x4ad354]
add ebx, 0x48
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
fild dword [ebx]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fadd qword [0x47ab96]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.00401d25
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x407fe0
call fcn.004076e6
add esp, 0x28
mov ebx, dword [0x4ad348]
mov ebx, dword [ebx + 4]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov ax, word [ebx]
cwde
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fmul qword [0x47ab9e]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.00401d25
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x408000
call fcn.004076e6
add esp, 0x1c
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x404c0a
push ebx
call fcn.004076da
add esp, 4
pop eax
mov dword [ebp - 8], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x404c21
mov eax, 0x47ab5f
push eax
push 1
mov ebx, 0x407890
call fcn.004076e6
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [0x4ad348]
mov ebx, dword [ebx + 4]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov ax, word [ebx]
cwde
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fmul qword [0x47ab9e]
fstp qword [ebp - 0x24]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fsub qword [ebp - 0x24]
ftst
fnstsw ax
test ah, 1
je 0x404c79
fchs
fcomp qword [0x47ab57]
fnstsw ax
test ah, 0x41
je 0x4055a9
push reloc.WS2_32.dll_getpeername
push 0
lea eax, [ebp - 8]
push eax
push 1
mov eax, 2
mov ebx, 0x456c10
call fcn.004076f2
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [0x4ad348]
mov ebx, dword [ebx + 4]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov ax, word [ebx]
cwde
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fmul qword [0x47ab9e]
fstp qword [ebp - 0x24]
mov dword [ebp - 0x28], esp
fld qword [ebp - 0x24]
call fcn.00401d25
push eax
push dword [ebp - 0x10]
mov ebx, dword [0x4ad34c]
call fcn.00401010
push ebx
mov dword [ebp - 0x2c], ecx
test ecx, ecx
jne 0x404d00
xor eax, eax
jmp 0x404d0c
imul ecx, ecx, 0x28
push ecx
call fcn.004076e0
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x404daf
push ecx
push edi
push ebx
mov ebx, dword [ebx]
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ebx
pop edi
pop ecx
dec ecx
je 0x404daf
add ebx, 4
add edi, 0x28
jmp 0x404d21
mov eax, 4
call fcn.004076fe
cmp dword [ebp - 0x28], esp
je 0x404dcb
push 6
call fcn.004076f8
add esp, 4
mov ebx, dword [ebp - 0x30]
push ebx
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x404e9a
push ecx
push edi
push ebx
mov edi, dword [edi]
push ebx
push edi
push 1
mov eax, 2
call fcn.004076d4
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x404e11
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x404e0f
imul eax, dword [edi]
jmp 0x404e04
mov ecx, eax
cmp ecx, 8
jle 0x404e1b
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 8
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ebx
pop edi
pop ecx
dec ecx
je 0x404e9a
add ebx, 0x28
add edi, 4
jmp 0x404ddd
call fcn.004076da
add esp, 4
mov ebx, dword [0x4ad348]
mov ebx, dword [ebx + 4]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov ax, word [ebx]
cwde
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x4055a6
mov ebx, dword [0x4ad348]
mov ebx, dword [ebx + 8]
add ebx, 0x18
mov dword [ebp - 0x10], ebx
mov ebx, dword [0x4ad34c]
call fcn.00401010
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x404efe
push 4
call fcn.004076f8
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x404f11
push 1
call fcn.004076f8
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], eax
jl 0x404ffc
mov ebx, dword [0x4ad348]
mov ebx, dword [ebx + 8]
add ebx, 0x18
mov dword [ebp - 0x1c], ebx
mov ebx, dword [0x4ad34c]
call fcn.00401010
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x404f5d
push 4
call fcn.004076f8
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x404f70
push 1
call fcn.004076f8
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x20], ebx
mov ebx, dword [0x4ad34c]
call fcn.00401010
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x404f9d
push 4
call fcn.004076f8
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x404fb0
push 1
call fcn.004076f8
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x20]
fild dword [ebx]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
mov ebx, dword [ebp - 0x24]
fild dword [ebx]
fstp qword [ebp - 0x34]
fadd qword [ebp - 0x34]
fstp qword [ebp - 0x3c]
mov ebx, dword [ebp - 0x1c]
fild dword [ebx]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
fsub qword [ebp - 0x3c]
fcomp qword [0x47ab57]
fnstsw ax
test ah, 0x41
je 0x404ffc
mov eax, 1
jmp 0x404ffe
xor eax, eax
test eax, eax
je 0x40559e
mov ebx, dword [0x4ad348]
mov ebx, dword [ebx + 8]
add ebx, 0x18
mov dword [ebp - 0x10], ebx
push 0x80000301
push 0
mov ebx, dword [ebp - 0x10]
push dword [ebx]
push getpeername
push 0
push str._.8X
push 2
mov eax, 3
mov ebx, 0x456e10
call fcn.004076f2
add esp, 0x1c
mov dword [ebp - 0x14], eax
push 0
push dword [ebp - 0x14]
push 0xffffffffffffffff
push 8
push 0x1601032b
push 0x5201014a
call fcn.004076ec
add esp, 0x18
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x405072
push ebx
call fcn.004076da
add esp, 4
mov ebx, dword [0x4ad348]
mov ebx, dword [ebx + 8]
add ebx, 0x18
mov dword [ebp - 0x10], ebx
mov ebx, dword [0x4ad34c]
call fcn.00401010
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x4050a1
push 4
call fcn.004076f8
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4050b4
push 1
call fcn.004076f8
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x14], ebx
mov ebx, dword [0x4ad34c]
call fcn.00401010
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x4050e1
push 4
call fcn.004076f8
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4050f4
push 1
call fcn.004076f8
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x10
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x14]
fild dword [ebx]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
mov ebx, dword [ebp - 0x18]
fild dword [ebx]
fstp qword [ebp - 0x28]
fsub qword [ebp - 0x28]
fstp qword [ebp - 0x30]
mov ebx, dword [ebp - 0x10]
fild dword [ebx]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
fsub qword [ebp - 0x30]
fstp qword [ebp - 0x40]
push 0x80000601
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push 1
mov ebx, 0x407910
call fcn.004076e6
add esp, 0x10
push 0x80000301
push 0
push eax
push getpeername
push 0
push str._.8X
push 2
mov eax, 3
mov ebx, 0x456e10
call fcn.004076f2
add esp, 0x1c
mov dword [ebp - 0x48], eax
push 0
push dword [ebp - 0x48]
push 0xffffffffffffffff
push 8
push 0x1601032c
push 0x5201014a
call fcn.004076ec
add esp, 0x18
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x4051a1
push ebx
call fcn.004076da
add esp, 4
mov ebx, dword [0x4ad348]
mov ebx, dword [ebx + 8]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov ebx, dword [0x4ad348]
mov ebx, dword [ebx + 8]
add ebx, 8
mov dword [ebp - 0x14], ebx
push 0x80000101
push 0
mov ebx, dword [ebp - 0x14]
mov al, byte [ebx]
push eax
push 0x80000101
push 0
mov ebx, dword [ebp - 0x10]
mov al, byte [ebx]
push eax
push getpeername
push 0
push 0x47ab78
push 3
mov eax, 3
mov ebx, 0x456e10
call fcn.004076f2
add esp, 0x28
mov dword [ebp - 0x18], eax
push 0
push dword [ebp - 0x18]
push 0xffffffffffffffff
push 8
push 0x1601032e
push 0x5201014a
call fcn.004076ec
add esp, 0x18
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40522a
push ebx
call fcn.004076da
add esp, 4
mov ebx, dword [0x4ad34c]
call fcn.00401010
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x40524a
push 4
call fcn.004076f8
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40525d
push 1
call fcn.004076f8
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov dword [ebp - 0x10], ebx
push 0xa0000101
push 0
mov ebx, dword [ebp - 0x10]
push dword [ebx]
push 1
mov ebx, 0x407af0
call fcn.004076e6
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0
push dword [ebp - 0x14]
push 0xffffffffffffffff
push 8
push 0x16010335
push 0x5201014a
call fcn.004076ec
add esp, 0x18
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4052b3
push ebx
call fcn.004076da
add esp, 4
mov ebx, dword [0x4ad348]
mov ebx, dword [ebx + 8]
add ebx, 0x18
mov dword [ebp - 0x10], ebx
mov ebx, dword [0x4ad34c]
call fcn.00401010
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x4052e2
push 4
call fcn.004076f8
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4052f5
push 1
call fcn.004076f8
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x14], ebx
mov ebx, dword [0x4ad34c]
call fcn.00401010
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x405322
push 4
call fcn.004076f8
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x405335
push 1
call fcn.004076f8
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x10
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x14]
fild dword [ebx]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
mov ebx, dword [ebp - 0x18]
fild dword [ebx]
fstp qword [ebp - 0x28]
fsub qword [ebp - 0x28]
fstp qword [ebp - 0x30]
mov ebx, dword [ebp - 0x10]
fild dword [ebx]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
fsub qword [ebp - 0x30]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
call fcn.00401d25
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x407fe0
call fcn.004076e6
add esp, 0x28
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x408000
call fcn.004076e6
add esp, 0x1c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4053e3
push ebx
call fcn.004076da
add esp, 4
pop eax
mov dword [ebp - 8], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4053fa
mov eax, 0x47ab5f
push eax
push 1
mov ebx, 0x407890
call fcn.004076e6
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 4
jne 0x40552b
mov ebx, dword [ebp - 8]
call fcn.00401010
mov eax, 0
cmp eax, ecx
jl 0x405438
push 1
call fcn.004076f8
add esp, 4
add ebx, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 8]
call fcn.00401010
mov eax, 1
cmp eax, ecx
jl 0x40545b
push 1
call fcn.004076f8
add esp, 4
add ebx, eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 8]
call fcn.00401010
mov eax, 2
cmp eax, ecx
jl 0x40547e
push 1
call fcn.004076f8
add esp, 4
add ebx, eax
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 8]
call fcn.00401010
mov eax, 3
cmp eax, ecx
jl 0x4054a1
push 1
call fcn.004076f8
add esp, 4
add ebx, eax
mov dword [ebp - 0x1c], ebx
push 0x80000101
push 0
mov ebx, dword [ebp - 0x1c]
mov al, byte [ebx]
push eax
push 0x80000101
push 0
mov ebx, dword [ebp - 0x18]
mov al, byte [ebx]
push eax
push 0x80000101
push 0
mov ebx, dword [ebp - 0x14]
mov al, byte [ebx]
push eax
push 0x80000101
push 0
mov ebx, dword [ebp - 0x10]
mov al, byte [ebx]
push eax
push getpeername
push 0
push 0x47aba6
push 5
mov eax, 3
mov ebx, 0x456e10
call fcn.004076f2
add esp, 0x40
mov dword [ebp - 0x20], eax
push 0
push dword [ebp - 0x20]
push 0xffffffffffffffff
push 8
push 0x16010333
push 0x5201014a
call fcn.004076ec
add esp, 0x18
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40552b
push ebx
call fcn.004076da
add esp, 4
mov ebx, dword [0x4ad348]
mov ebx, dword [ebx + 8]
add ebx, 0x58
mov dword [ebp - 0x10], ebx
push 0x80000201
push 0
mov ebx, dword [ebp - 0x10]
mov ax, word [ebx]
push eax
push getpeername
push 0
push str._.4X
push 2
mov eax, 3
mov ebx, 0x456e10
call fcn.004076f2
add esp, 0x1c
mov dword [ebp - 0x14], eax
push 0
push dword [ebp - 0x14]
push 0xffffffffffffffff
push 8
push 0x16010330
push 0x5201014a
call fcn.004076ec
add esp, 0x18
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x405599
push ebx
call fcn.004076da
add esp, 4
jmp 0x4055a6
pop eax
pop ebx
pop ecx
jmp 0x404ec1
add esp, 0xc
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x407e30
call fcn.004076e6
add esp, 0x10
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4055d5
push ebx
call fcn.004076da
add esp, 4
mov esp, ebp
pop ebp
ret 4