Function at 0x4025a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x68]
test edx, edx
je 0x402968
mov edx, dword [ebp - 0x68]
movzx ecx, ax
inc dword [0x413314]
cmp eax, 0x14
mov esi, dword [edx + 0x1c]
mov dword [ebp - 0x38], ecx
mov edi, esi
ja 0x402948
mov eax, dword [edi]
sub esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x10], eax
movzx eax, word [ebp - 0x1e]
mov dword [ebp - 0x3c], eax
movzx ebx, word [esi + 2]
mov dword [esi + 4], 0
mov dword [esi], 0
mov byte [esi + 8], 0
push ebx
call sub.WS2_32.DLL_htons
mov word [esi + 0xa], ax
sub esp, 0xc
lea eax, [ebx + 0x14]
push eax
mov eax, dword [ebp - 0x68]
push eax
call fcn.00407150
add esp, 0x20
test eax, eax
jne 0x402925
movzx eax, byte [esi + 0x20]
shr al, 4
movzx eax, al
shl eax, 2
cmp eax, 0x13
mov dword [ebp - 0x5c], eax
jbe 0x402940
cmp ebx, eax
jl 0x402940
mov eax, dword [ebp - 0x5c]
sub ebx, eax
mov word [esi + 0xa], bx
cmp dword [ebp - 0x5c], 0x14
ja 0x402cc6
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
movzx eax, byte [esi + 0x21]
sub esp, 0xc
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0x18]
push eax
call sub.WS2_32.DLL_ntohl
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x1c]
push eax
call sub.WS2_32.DLL_ntohl
mov dword [esi + 0x1c], eax
movzx eax, word [esi + 0x22]
push eax
call sub.WS2_32.DLL_ntohs
mov word [esi + 0x22], ax
movzx eax, word [esi + 0x26]
push eax
call sub.WS2_32.DLL_ntohs
mov word [esi + 0x26], ax
add esp, 0xc
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x5c]
mov ebx, dword [edx + 0x1c]
add eax, ebx
add eax, 0x14
mov dword [edx + 0x1c], eax
mov eax, dword [edx + 0x20]
mov ecx, dword [ebp - 0x5c]
sub eax, ecx
sub eax, 0x14
mov dword [edx + 0x20], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x48], 0
mov ecx, dword [0x40d054]
mov dword [ebp - 0x54], ecx
movzx edx, word [esi + 0x16]
cmp word [ecx + 0x20], dx
jne 0x40270f
movzx eax, word [ecx + 0x22]
cmp ax, word [esi + 0x14]
je 0x403067
sub esp, 0xc
push edx
mov eax, dword [esi + 0x10]
push eax
movzx eax, word [esi + 0x14]
push eax
mov ebx, dword [esi + 0xc]
push ebx
push 0x413460
call fcn.00407360
add esp, 0x20
test eax, eax
mov dword [ebp - 0x54], eax
je 0x402e66
inc dword [0x41336c]
mov dword [0x40d054], eax
mov ecx, dword [ebp - 0x54]
test byte [ecx + 0x28], 2
jne 0x40292b
mov ebx, dword [ecx + 0x2c]
test ebx, ebx
mov dword [ebp - 0x30], ebx
je 0x40299e
cmp word [ebx + 8], 0
je 0x40292b
movzx eax, word [esi + 0x22]
mov dword [ebp - 0x44], eax
xor eax, eax
mov word [ebx + 0x88], ax
mov eax, dword [0x413090]
test eax, eax
je 0x402c14
mov eax, dword [0x40d0e4]
mov word [ebx + 0xe], ax
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x4027b6
mov ecx, dword [ebp - 0x30]
cmp word [ecx + 8], 1
je 0x4029f0
push esi
mov ebx, dword [ebp - 0x60]
push ebx
mov edx, dword [ebp - 0x64]
push edx
push ecx
call fcn.00402310
add esp, 0x10
mov ebx, dword [ebp - 0x30]
cmp word [ebx + 8], 4
je 0x402f11
mov edx, dword [ebp - 0x54]
mov ecx, dword [edx + 0x3c]
mov edx, dword [edx + 0x40]
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x30]
mov eax, dword [eax + 0x6c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebx + 0x78]
sub eax, dword [ebp - 0x6c]
sub edx, ecx
mov dword [ebx + 0x68], eax
js 0x402dfe
cmp eax, edx
jge 0x4027f0
mov eax, edx
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x68], eax
mov eax, dword [edx + 8]
cmp ax, 1
je 0x402c25
cmp ax, 2
je 0x402e05
mov eax, dword [esi + 0x18]
mov ebx, dword [ebp - 0x6c]
sub ebx, eax
test ebx, ebx
jle 0x40289e
test byte [ebp - 0x58], 2
je 0x40283f
and dword [ebp - 0x58], 0xfffffffd
inc eax
mov dword [esi + 0x18], eax
movzx eax, word [esi + 0x26]
cmp ax, 1
jbe 0x403135
dec eax
dec ebx
mov word [esi + 0x26], ax
movzx eax, word [esi + 0xa]
cmp ebx, eax
jle 0x402d16
mov ecx, dword [ebp - 0x30]
and dword [ebp - 0x58], 0xfffffffe
mov eax, dword [ecx + 0x1c]
or eax, 1
mov word [ecx + 0x1c], ax
movzx ebx, word [esi + 0xa]
inc dword [0x413328]
add dword [0x41332c], ebx
sub esp, 8
push ebx
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00409130
movzx eax, word [esi + 0xa]
movzx edx, bx
add dword [esi + 0x18], ebx
add esp, 0x10
sub eax, edx
mov word [esi + 0xa], ax
movzx eax, word [esi + 0x26]
cmp ebx, eax
jge 0x402e57
sub eax, edx
mov word [esi + 0x26], ax
mov ebx, dword [ebp - 0x54]
test byte [ebx + 0x28], 1
jne 0x402ce0
mov edx, dword [esi + 0x18]
movzx ebx, word [esi + 0xa]
add ebx, edx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x68]
sub ebx, eax
mov eax, dword [edx + 0x6c]
sub ebx, eax
test ebx, ebx
jle 0x4032c0
inc dword [0x413340]
movzx eax, word [esi + 0xa]
cmp ebx, eax
jl 0x403298
add dword [0x413344], eax
test byte [ebp - 0x58], 2
je 0x403238
cmp word [edx + 8], 0xa
jne 0x403238
mov ecx, edx
mov eax, dword [esi + 0x18]
mov edx, dword [edx + 0x6c]
sub eax, edx
test eax, eax
jle 0x403238
sub esp, 0xc
add edx, 0x1f400
mov dword [ebp - 0x48], edx
push ecx
call fcn.004047e0
add esp, 0x10
mov dword [ebp - 0x30], eax
jmp 0x4026ee
inc dword [0x413320]
mov ecx, dword [ebp - 0x68]
mov dword [ebp + 8], ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004092c0
inc dword [0x413324]
jmp 0x40292b
sub esp, 8
push 0
push edx
call fcn.00405590
mov ebx, dword [ebp - 0x68]
add esp, 0x10
mov dword [ebp - 0x38], 0x14
mov edi, dword [ebx + 0x1c]
jmp 0x4025dd
mov edx, dword [ebx + 0x2c]
mov dword [ebp - 0x30], edx
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x68], ecx
mov esi, dword [ebx + 0x10]
mov dword [ebx + 0xc], 0
movzx edi, byte [esi + 0x21]
movzx eax, word [esi + 0x22]
mov dword [ebp - 0x58], edi
test byte [ebx + 0x28], 1
je 0x4029fe
sub esp, 0xc
push edx
call fcn.004047e0
add esp, 0x10
mov dword [ebp - 0x30], eax
test byte [ebp - 0x58], 0x10
jne 0x4029c6
test byte [ebp - 0x58], 2
je 0x4029b3
movzx eax, word [esi + 0xa]
inc eax
mov word [esi + 0xa], ax
sub esp, 8
push 0x14
push 0
movzx eax, word [esi + 0xa]
mov edx, dword [esi + 0x18]
add eax, edx
push eax
jmp 0x4029d1
sub esp, 8
push 4
mov ecx, dword [esi + 0x1c]
push ecx
push 0
mov eax, dword [ebp - 0x68]
push eax
push esi
mov eax, dword [ebp - 0x30]
push eax
call fcn.00404c60
add esp, 0x20
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax + 0x40]
jmp 0x4027cd
mov edi, dword [ebp - 0x30]
sub esp, 0xc
mov dword [ebp - 0x44], eax
push edi
call fcn.00403ba0
add esp, 0x10
mov dword [ebp - 0x54], ebx
mov eax, dword [0x413450]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x60], eax
add dword [0x413450], 0xfa00
mov ebx, dword [ebp - 0x30]
mov eax, dword [esi + 0x18]
mov word [ebx + 8], 3
mov word [ebx + 0xe], 0x96
mov dword [ebx + 0x74], eax
mov eax, dword [ebx + 0x60]
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0x74]
inc eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x78], eax
mov eax, dword [ebx + 0x1c]
or eax, 1
mov word [ebx + 0x1c], ax
inc dword [0x4132b4]
inc dword [esi + 0x18]
movzx edx, word [esi + 0xa]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x68]
cmp edx, eax
ja 0x403030
mov eax, dword [esi + 0x18]
mov edx, dword [ebp - 0x30]
dec eax
mov dword [edx + 0x58], eax
mov eax, dword [esi + 0x18]
mov dword [edx + 0x70], eax
mov ebx, dword [ebp - 0x58]
mov dword [ebp - 0x4c], 0
and ebx, 0x10
test ebx, ebx
je 0x402b10
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 0x58]
mov eax, dword [esi + 0x18]
cmp edx, eax
js 0x402ac6
cmp edx, eax
jne 0x402b10
mov ecx, dword [ebp - 0x30]
mov eax, dword [esi + 0x1c]
mov edx, dword [ecx + 0x5c]
cmp edx, eax
js 0x402ac6
cmp edx, eax
jne 0x402b10
mov ebx, dword [ebp - 0x44]
cmp dword [ecx + 0x64], ebx
jae 0x402b10
cmp word [esi + 0xa], 0
jne 0x402adc
mov edi, dword [ebp - 0x30]
mov eax, dword [edi + 0x5c]
cmp eax, dword [esi + 0x1c]
je 0x403220
mov ebx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x64], ebx
mov eax, dword [esi + 0x18]
mov dword [ecx + 0x58], eax
mov eax, dword [esi + 0x1c]
mov dword [ecx + 0x5c], eax
mov dword [ebp - 0x4c], 1
cmp ebx, dword [ecx + 0x98]
jbe 0x402b10
mov dword [ecx + 0x98], ebx
mov dword [ebp - 0x4c], 1
lea esi, [esi]
test byte [ebp - 0x58], 0x20
je 0x402b22
movzx edx, word [esi + 0x26]
test edx, edx
jne 0x402d2d
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x30]
mov edx, dword [eax + 0x6c]
mov ebx, dword [ecx + 0x70]
mov eax, edx
sub eax, ebx
test eax, eax
jle 0x402b39
mov dword [ecx + 0x70], edx
cmp word [esi + 0xa], 0
jne 0x402bcb
test byte [ebp - 0x58], 1
jne 0x402bcb
mov edx, dword [ebp - 0x68]
sub esp, 0xc
push edx
call fcn.004092c0
mov ebx, dword [ebp - 0x58]
add esp, 0x10
and ebx, 0xfffffffe
test bl, 1
je case.0x402d60.2
mov ecx, dword [ebp - 0x30]
cmp word [ecx + 8], 9
jle 0x402d67
mov edi, dword [ebp - 0x30]
mov eax, dword [edi + 8]
sub eax, 3
cmp ax, 7
jbe 0x402d5d
lea esi, [esi]
movzx eax, word [esi + 0xa]
dec eax
cmp ax, 4
ja 0x402ba5
cmp byte [esi + 0x28], 0x1b
je 0x402d8b
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x402bb9
mov ecx, dword [ebp - 0x30]
test byte [ecx + 0x1c], 1
je 0x4029e2
mov ebx, dword [ebp - 0x30]
mov dword [ebp + 8], ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00406460
mov ebx, dword [ebp - 0x30]
movsx edx, word [ebx + 8]
cmp dx, 9
jg 0x402b4e
mov eax, dword [esi + 0x18]
cmp eax, dword [ebx + 0x6c]
jne 0x402bec
cmp dword [ebx], ebx
je 0x4031ae
mov ebx, dword [ebp - 0x68]
sub esp, 4
push ebx
push esi
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004023a0
mov edx, dword [ebp - 0x30]
add esp, 0x10
mov ebx, eax
mov eax, dword [edx + 0x1c]
or eax, 1
mov word [edx + 0x1c], ax
jmp 0x402b63
mov eax, dword [0x40d0e0]
mov edx, dword [ebp - 0x30]
mov word [edx + 0xe], ax
jmp 0x40278f
test byte [ebp - 0x58], 4
jne 0x40292b
test byte [ebp - 0x58], 0x10
jne 0x4029c6
test byte [ebp - 0x58], 2
lea esi, [esi]
je 0x40292b
mov eax, dword [ebp - 0x54]
sub esp, 0xc
mov ebx, dword [eax + 0x18]
push 0xffffff00
call sub.WS2_32.DLL_htonl
and ebx, eax
add esp, 0xc
cmp ebx, dword [0x413430]
je 0x4033eb
mov ecx, dword [ebp - 0x54]
movzx edx, byte [ecx + 0x25]
movzx eax, dl
test al, 0x10
je 0x403306
and dl, 0xef
mov byte [ecx + 0x25], dl
mov eax, dword [ebp - 0x30]
sub esp, 0xc
push eax
call fcn.00403ba0
mov eax, dword [ebp - 0x64]
add esp, 0x10
test eax, eax
je 0x402cad
push esi
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x30]
push eax
call fcn.00402310
add esp, 0x10
mov edi, dword [ebp - 0x48]
test edi, edi
je 0x402a13
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x60], edx
jmp 0x402a1e
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x68]
sub edx, 0x14
mov dword [ebp - 0x60], edx
mov ebx, dword [ecx + 0x1c]
add ebx, 0x28
mov dword [ebp - 0x64], ebx
jmp 0x402680
mov eax, dword [ebp - 0x30]
cmp word [eax + 8], 5
jle 0x4028ab
cmp word [esi + 0xa], 0
je 0x4028ab
mov edi, dword [ebp - 0x30]
sub esp, 0xc
push edi
call fcn.004047e0
add esp, 0x10
inc dword [0x413348]
mov dword [ebp - 0x30], eax
jmp 0x40299e
je 0x403121
inc dword [0x413330]
add dword [0x413334], ebx
jmp 0x40286c
mov edi, dword [ebp - 0x30]
cmp word [edi + 8], 9
jg 0x402b22
mov ecx, dword [ebp - 0x54]
mov eax, edx
mov edi, dword [ecx + 0x3c]
add eax, edi
cmp eax, dword [ecx + 0x40]
jbe 0x403145
mov word [esi + 0x26], 0
and dword [ebp - 0x58], 0xffffffdf
jmp 0x402b39
movzx eax, ax
jmp dword [eax*4 + 0x411420]
mov eax, dword [ebp - 0x54]
sub esp, 0xc
push eax
call fcn.00407540
mov ebx, dword [ebp - 0x30]
add esp, 0x10
mov eax, dword [ebx + 0x1c]
inc dword [ebx + 0x6c]
or eax, 1
mov word [ebx + 0x1c], ax
jmp 0x402b76
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x1c]
or eax, 1
mov word [edx + 0x1c], ax
jmp 0x402ba5
mov eax, dword [ebp - 0x54]
cmp byte [eax + 0x25], 1
je 0x40328a
mov ecx, dword [ebp - 0x30]
mov word [ecx + 8], 5
jmp case.0x402d60.2
mov ebx, dword [ebp - 0x30]
mov word [ebx + 8], 7
jmp case.0x402d60.2
mov edi, dword [ebp - 0x30]
sub esp, 0xc
mov word [edi + 8], 0xa
push edi
call fcn.004051b0
mov word [edi + 0x10], 0x14
pop eax
mov eax, dword [ebp - 0x54]
push eax
call fcn.00407420
add esp, 0x10
jmp case.0x402d60.2
mov eax, dword [ebp - 0x30]
mov word [eax + 0x10], 0x14
jmp case.0x402d60.2
xor edx, edx
jmp 0x4027ea
mov ecx, dword [ebp - 0x58]
and ecx, 0x10
je 0x402e2f
mov edi, dword [ebp - 0x30]
mov edx, dword [esi + 0x1c]
mov ebx, dword [edi + 0x60]
mov eax, edx
sub eax, ebx
test eax, eax
jle 0x4029c6
mov eax, dword [edi + 0x7c]
sub edx, eax
test edx, edx
jg 0x4029c6
test byte [ebp - 0x58], 4
je 0x403085
test ecx, ecx
je 0x40292b
sub esp, 8
push 0
mov ebx, dword [ebp - 0x30]
push ebx
call fcn.00404940
add esp, 0x10
jmp 0x40292b
and dword [ebp - 0x58], 0xffffffdf
mov word [esi + 0x26], 0
jmp 0x40289e
mov eax, dword [ebp - 0x58]
inc dword [0x41336c]
and eax, 0x37
cmp eax, 2
jne 0x40299e
call fcn.00407f50
test eax, eax
mov dword [ebp - 0x54], eax
je 0x40299e
sub esp, 0xc
push eax
call fcn.00404a40
add esp, 0x10
test eax, eax
js 0x4034a3
mov ecx, dword [0x413780]
sub esp, 8
push ecx
mov eax, dword [ebp - 0x54]
add eax, 0x50
push eax
call fcn.00401900
pop eax
mov eax, dword [0x413380]
pop edx
push eax
mov eax, dword [ebp - 0x54]
add eax, 0x3c
push eax
call fcn.00401900
mov eax, dword [esi + 0xc]
mov ebx, dword [ebp - 0x54]
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 0x14]
mov word [ebx + 0x22], ax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x18], eax
movzx eax, word [esi + 0x16]
mov word [ebx + 0x20], ax
mov dword [esp], ebx
call fcn.00403c20
add esp, 0x10
test al, al
mov byte [ebx + 0x24], al
jne 0x402f00
movzx eax, byte [esi + 1]
mov byte [ebx + 0x24], al
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 0x2c]
mov word [eax + 8], 1
jmp 0x402743
mov eax, dword [ebp - 0x58]
and eax, 0x37
cmp eax, 0x10
jne 0x4029f0
mov eax, dword [esi + 0x18]
cmp eax, dword [ebx + 0x6c]
jne 0x4027c4
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4029f0
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebx + 0x64]
jne 0x4027c4
mov ecx, dword [ebx + 0x50]
cmp ecx, dword [ebx + 0x7c]
jne 0x4029f0
movzx ebx, word [esi + 0xa]
test ebx, ebx
jne 0x4035c2
mov edx, dword [esi + 0x1c]
mov ebx, dword [ebp - 0x30]
mov eax, edx
sub eax, dword [ebx + 0x4c]
test eax, eax
jle 0x4027c4
sub edx, ecx
test edx, edx
jg 0x4029f0
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebx + 0x80]
ja 0x4027c4
inc dword [0x413364]
movsx ecx, word [ebx + 0x8a]
test ecx, ecx
je 0x403913
mov edx, dword [esi + 0x1c]
mov edi, dword [ebx + 0x8c]
mov eax, edx
sub eax, edi
test eax, eax
jle 0x402fb9
push ecx
push ebx
call fcn.00402100
mov edx, dword [esi + 0x1c]
pop ecx
pop ebx
mov ecx, dword [ebp - 0x30]
mov eax, edx
sub esp, 8
mov edx, dword [ecx + 0x4c]
inc dword [0x413358]
sub eax, edx
add dword [0x41335c], eax
push eax
mov eax, dword [ebp - 0x54]
add eax, 0x50
push eax
call fcn.00401670
mov ebx, dword [ebp - 0x30]
mov eax, dword [esi + 0x1c]
mov dword [ebx + 0x4c], eax
mov edi, dword [ebp - 0x68]
pop eax
push edi
call fcn.004092c0
mov eax, dword [ebx + 0x4c]
add esp, 0x10
cmp eax, dword [ebx + 0x7c]
je 0x403908
mov edi, dword [ebp - 0x30]
cmp word [edi + 0xc], 0
jne 0x403012
mov eax, dword [edi + 0x14]
mov word [edi + 0xa], ax
mov eax, dword [ebp - 0x54]
mov esi, dword [eax + 0x50]
test esi, esi
je 0x4029e2
mov edx, dword [ebp - 0x30]
mov dword [ebp + 8], edx
jmp 0x402bbf
mov ebx, edx
sub esp, 8
sub ebx, eax
mov eax, ebx
neg eax
push eax
mov edi, dword [ebp - 0x68]
push edi
call fcn.00409130
mov edi, dword [ebp - 0x30]
add esp, 0x10
mov eax, dword [edi + 0x68]
mov word [esi + 0xa], ax
and dword [ebp - 0x58], 0xfffffffe
inc dword [0x413340]
add dword [0x413344], ebx
jmp 0x402a7b
mov eax, dword [ecx + 0x1c]
cmp eax, dword [esi + 0xc]
jne 0x40270f
mov eax, dword [ecx + 0x18]
cmp eax, dword [esi + 0x10]
jne 0x40270f
nop
jmp 0x402743
test byte [ebp - 0x58], 2
je 0x40292b
test ecx, ecx
je 0x403180
mov edx, dword [ebp - 0x30]
mov eax, dword [esi + 0x1c]
cmp dword [edx + 0x50], eax
mov dword [edx + 0x4c], eax
js 0x4033e3
mov ebx, dword [ebp - 0x30]
mov word [ebx + 0xa], 0
mov ecx, dword [ebx + 0x60]
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x74], eax
inc eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x78], eax
mov eax, dword [ebx + 0x1c]
or eax, 1
mov word [ebx + 0x1c], ax
mov eax, dword [ebx + 0x4c]
sub eax, ecx
test eax, eax
jle 0x4031a0
mov ecx, dword [ebp - 0x54]
sub esp, 0xc
inc dword [0x4132b8]
push ecx
call fcn.00407400
mov ebx, dword [ebp - 0x30]
add esp, 0xc
mov word [ebx + 8], 4
push 0
push 0
push ebx
call fcn.004023a0
movsx eax, word [ebx + 0x8a]
add esp, 0x10
test eax, eax
je 0x402a66
push eax
push ebx
call fcn.00402100
pop eax
pop edx
jmp 0x402a66
test byte [ebp - 0x58], 1
jne 0x402d1c
nop
lea esi, [esi]
jmp 0x40284b
and dword [ebp - 0x58], 0xffffffdf
dec ebx
lea esi, [esi]
jmp 0x40283f
mov ebx, dword [esi + 0x18]
add edx, ebx
mov ebx, dword [ebp - 0x30]
mov eax, edx
mov ecx, dword [ebx + 0x70]
sub eax, ecx
test eax, eax
jle 0x402b39
mov dword [ebx + 0x70], edx
mov eax, dword [ebx + 0x6c]
mov edi, dword [ebp - 0x54]
sub edx, eax
mov eax, dword [edi + 0x3c]
add edx, eax
mov dword [edi + 0x14], edx
movzx eax, word [esi + 0x26]
mov edi, dword [esi + 0x18]
add eax, edi
mov dword [ebx + 0x70], eax
jmp 0x402b39
mov ecx, dword [ebp - 0x30]
mov word [ecx + 0xa], 0
mov eax, dword [esi + 0x18]
mov dword [ecx + 0x74], eax
inc eax
mov dword [ecx + 0x6c], eax
mov dword [ecx + 0x78], eax
mov eax, dword [ecx + 0x1c]
or eax, 1
mov word [ecx + 0x1c], ax
mov edi, dword [ebp - 0x30]
mov word [edi + 8], 3
jmp 0x402a66
cmp dx, 4
jne 0x402bec
mov eax, dword [ebx + 0x1c]
or eax, 2
mov word [ebx + 0x1c], ax
movzx eax, word [esi + 0xa]
add dword [ebx + 0x6c], eax
movzx ebx, byte [esi + 0x21]
inc dword [0x413318]
mov edi, dword [ebp - 0x54]
movzx eax, word [esi + 0xa]
and ebx, 1
add dword [0x41331c], eax
cmp byte [edi + 0x25], 0
je 0x40344e
mov eax, dword [ebp - 0x68]
sub esp, 8
push eax
push edi
call fcn.00403d30
add esp, 0x10
test eax, eax
je 0x402b63
mov eax, dword [ebp - 0x68]
sub esp, 8
push eax
push edi
call fcn.00401850
add esp, 0x10
jmp 0x402b63
mov eax, dword [0x413360]
mov edx, dword [ebp - 0x44]
cmp dword [edi + 0x64], edx
adc eax, 0
mov dword [0x413360], eax
jmp 0x402adc
mov edi, dword [ebp - 0x30]
mov eax, dword [edi + 0x68]
test eax, eax
jne 0x4033d5
mov eax, dword [esi + 0x18]
cmp eax, dword [edi + 0x6c]
je 0x40347f
mov eax, dword [ebp - 0x58]
and eax, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x40292b
mov eax, dword [ebp - 0x68]
sub esp, 0xc
push eax
call fcn.004092c0
mov edx, dword [ebp - 0x30]
add esp, 0x10
mov eax, dword [edx + 0x1c]
or eax, 1
mov word [edx + 0x1c], ax
mov dword [ebp + 8], edx
jmp 0x402bbf
mov edx, dword [ebp - 0x30]
mov word [edx + 8], 8
jmp case.0x402d60.2
add dword [0x413344], ebx
mov eax, ebx
sub esp, 8
neg eax
push eax
mov eax, dword [ebp - 0x68]
push eax
call fcn.00409130
movzx eax, word [esi + 0xa]
add esp, 0x10
sub eax, ebx
mov word [esi + 0xa], ax
and dword [ebp - 0x58], 0xfffffff6
mov ecx, dword [ebp - 0x58]
and ecx, 4
mov dword [ebp - 0x34], ecx
je 0x40333c
mov ebx, dword [ebp - 0x30]
cmp word [ebx + 8], 0xa
ja 0x40333c
movsx ecx, word [ebx + 8]
mov eax, 1
shl eax, cl
test eax, 0x278
jne 0x4034b7
test eax, 0x580
je 0x40333c
mov eax, dword [ebp - 0x30]
sub esp, 0xc
push eax
call fcn.004047e0
add esp, 0x10
jmp 0x40292b
mov eax, dword [ebp - 0x54]
sub esp, 0xc
push eax
call fcn.004046f0
add esp, 0x10
inc eax
je 0x4034d7
mov edi, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x54]
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], esi
mov eax, dword [ebp - 0x30]
mov word [eax + 0xe], 0x96
mov word [eax + 8], 3
jmp 0x4029e2
test byte [ebp - 0x58], 2
jne 0x403466
mov ebx, dword [ebp - 0x58]
and ebx, 0x10
je 0x40292b
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 8]
cmp ax, 3
je 0x403650
jl 0x403497
cmp ax, 0xa
jg 0x403497
mov edi, dword [ebp - 0x30]
mov eax, dword [esi + 0x1c]
mov edx, dword [edi + 0x4c]
mov dword [ebp - 0x4c], 0
sub eax, edx
test eax, eax
jle 0x40391b
mov edx, dword [ebp - 0x30]
movsx eax, word [edx + 0x16]
cmp eax, dword [0x40d050]
jle 0x4033af
mov eax, dword [edx + 0x84]
cmp dword [edx + 0x80], eax
jbe 0x4033af
mov dword [edx + 0x80], eax
mov ecx, dword [ebp - 0x30]
mov word [ecx + 0x16], 0
mov edi, dword [ecx + 0x7c]
mov edx, dword [esi + 0x1c]
mov eax, edx
sub eax, edi
test eax, eax
jle 0x4036df
inc dword [0x413354]
jmp 0x40325b
mov edi, dword [ebp - 0x58]
and edi, 4
mov dword [ebp - 0x34], edi
jmp 0x40325b
mov dword [edx + 0x50], eax
jmp 0x4030a9
mov edx, dword [ebp - 0x54]
sub esp, 0xc
mov eax, dword [edx + 0x18]
push eax
call sub.WS2_32.DLL_ntohl
movzx ecx, al
add esp, 0xc
lea eax, [ecx - 2]
cmp eax, 1
jbe 0x402c6a
mov eax, dword [0x413700]
test eax, eax
je 0x40343c
mov ebx, dword [ebp - 0x54]
movzx edx, word [ebx + 0x20]
jmp 0x403427
mov eax, dword [eax + 0x10]
test eax, eax
je 0x40343c
cmp dword [eax + 8], edx
jne 0x403420
cmp ecx, dword [eax + 4]
nop
jne 0x403420
mov ecx, dword [ebp - 0x54]
or dword [ecx + 0x28], 0x80
mov eax, dword [ebp - 0x54]
cmp byte [eax + 0x28], 0
js 0x402c82
jmp 0x402c6a
mov eax, dword [ebp - 0x68]
sub esp, 8
push eax
mov edi, dword [ebp - 0x54]
push edi
call fcn.00401850
add esp, 0x10
jmp 0x402b63
sub esp, 8
push 0
mov eax, dword [ebp - 0x30]
push eax
call fcn.00404940
add esp, 0x10
mov dword [ebp - 0x30], eax
jmp 0x40299e
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x1c]
or eax, 1
mov word [edx + 0x1c], ax
inc dword [0x41334c]
jmp 0x40329e
mov dword [ebp - 0x4c], 0
jmp 0x402a98
mov ebx, dword [ebp - 0x54]
sub esp, 0xc
push ebx
call fcn.0040cb90
add esp, 0x10
jmp 0x40299e
mov edi, dword [ebp - 0x30]
sub esp, 0xc
mov word [edi + 8], 0
inc dword [0x4132bc]
push edi
call fcn.004047e0
add esp, 0x10
jmp 0x40292b
call sub.WS2_32.DLL_WSAGetLastError
cmp eax, 0x2734
je 0x40331c
call sub.WS2_32.DLL_WSAGetLastError
cmp eax, 0x2733
je 0x40331c
call sub.WS2_32.DLL_WSAGetLastError
cmp eax, 0x274d
je 0x403976
call sub.WS2_32.DLL_WSAGetLastError
sub esp, 0xc
mov ebx, eax
mov eax, dword [esi + 0x18]
push eax
call sub.WS2_32.DLL_htonl
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x1c]
push eax
call sub.WS2_32.DLL_htonl
mov dword [esi + 0x1c], eax
movzx eax, word [esi + 0x22]
push eax
call sub.WS2_32.DLL_htons
mov word [esi + 0x22], ax
movzx eax, word [esi + 0x26]
push eax
call sub.WS2_32.DLL_htons
mov word [esi + 0x26], ax
add esp, 0xc
mov edx, dword [ebp - 0x68]
mov esi, dword [ebp - 0x5c]
mov eax, dword [edx + 0x1c]
sub eax, esi
sub eax, 0x14
mov dword [edx + 0x1c], eax
mov eax, dword [edx + 0x20]
mov ecx, dword [ebp - 0x5c]
add eax, 0x14
add eax, ecx
mov dword [edx + 0x20], eax
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
add eax, edx
mov word [ebp - 0x1e], ax
mov eax, dword [ebp - 0x20]
mov dword [edi], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x10], eax
call sub.WS2_32.DLL_WSAGetLastError
sub esp, 0xc
push eax
call sub.msvcrt.dll_strerror
mov dword [esp], eax
xor eax, eax
cmp ebx, 0x2751
push 0
sete al
push eax
push 3
mov eax, dword [ebp - 0x68]
push eax
call fcn.00406d30
add esp, 0x20
jmp 0x4032f2
mov ecx, dword [ebp - 0x30]
mov eax, dword [esi + 0x1c]
cmp eax, dword [ecx + 0x4c]
jne 0x4029f0
cmp dword [ecx], ecx
jne 0x4027c4
mov eax, dword [ebp - 0x54]
mov edx, dword [eax + 0x40]
mov ecx, dword [eax + 0x3c]
mov eax, edx
sub eax, ecx
cmp ebx, eax
ja 0x4027cd
inc dword [0x413368]
mov edx, dword [ebp - 0x30]
movzx eax, word [esi + 0xa]
add dword [edx + 0x6c], eax
inc dword [0x413318]
mov ecx, dword [ebp - 0x54]
movzx eax, word [esi + 0xa]
add dword [0x41331c], eax
cmp byte [ecx + 0x25], 0
je 0x40395e
mov ebx, dword [ebp - 0x68]
sub esp, 8
push ebx
push ecx
call fcn.00403d30
add esp, 0x10
test eax, eax
jne 0x40395e
cmp word [esi + 0xa], 1
je 0x40393f
mov edi, dword [ebp - 0x30]
mov eax, dword [edi + 0x1c]
or eax, 2
mov word [edi + 0x1c], ax
jmp 0x4029e2
mov ecx, dword [ebp - 0x30]
mov edx, dword [esi + 0x1c]
mov eax, dword [ecx + 0x4c]
sub eax, edx
test eax, eax
jg 0x4029c6
mov eax, dword [ecx + 0x7c]
sub edx, eax
test edx, edx
jg 0x4029c6
inc dword [0x4132b8]
mov word [ecx + 8], 4
mov eax, dword [esi + 0x1c]
mov dword [ecx + 0x4c], eax
mov edi, dword [ebp - 0x54]
cmp byte [edi + 0x28], 0
jns 0x4038ed
sub esp, 0xc
push edi
call fcn.00403b10
add esp, 0x10
cmp eax, 1
je 0x4038ce
cmp eax, 2
je 0x4038b8
mov edx, dword [ebp - 0x30]
mov word [edx + 8], 6
mov dword [ebp - 0x4c], 1
sub esp, 4
push 0
push 0
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004023a0
mov eax, dword [esi + 0x18]
add esp, 0x10
mov ecx, dword [ebp - 0x30]
dec eax
mov dword [ecx + 0x58], eax
jmp 0x40338c
mov edi, dword [ebp - 0x30]
mov eax, dword [edi + 0x4c]
inc dword [0x413358]
sub edx, eax
add dword [0x41335c], edx
mov dword [ebp - 0x50], edx
movsx ecx, word [edi + 0x8a]
test ecx, ecx
je 0x4038b0
mov edx, dword [esi + 0x1c]
mov eax, edx
sub eax, dword [edi + 0x8c]
test eax, eax
jle 0x403720
push ecx
push edi
call fcn.00402100
pop eax
pop edx
mov edx, dword [esi + 0x1c]
mov eax, dword [ebp - 0x30]
cmp edx, dword [eax + 0x7c]
je 0x40389e
mov edx, dword [ebp - 0x30]
cmp word [edx + 0xc], 0
jne 0x40373d
mov eax, dword [edx + 0x14]
mov word [edx + 0xa], ax
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ecx + 0x80]
mov dword [ebp - 0x40], ecx
cmp ecx, dword [eax + 0x84]
movzx edi, word [eax + 0x18]
jbe 0x403763
mov eax, edi
xor edx, edx
imul eax, edi
div ecx
mov edi, eax
mov edx, dword [ebp - 0x30]
mov eax, 0xffff
movzx ecx, byte [edx + 0xa0]
shl eax, cl
mov dword [edx + 0x80], eax
mov ecx, dword [ebp - 0x40]
lea edx, [edi + ecx]
cmp eax, edx
jbe 0x403786
mov eax, edx
mov edi, dword [ebp - 0x30]
mov dword [edi + 0x80], eax
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 0x50]
cmp dword [ebp - 0x50], eax
jbe 0x403878
sub dword [edi + 0x64], eax
sub esp, 8
mov eax, dword [edx + 0x50]
push eax
mov eax, edx
add eax, 0x50
push eax
call fcn.00401670
mov edx, 1
add esp, 0x10
mov ecx, dword [ebp - 0x30]
mov eax, dword [esi + 0x1c]
cmp dword [ecx + 0x50], eax
mov dword [ecx + 0x4c], eax
jns 0x4037cc
mov dword [ecx + 0x50], eax
mov edi, dword [ebp - 0x30]
mov eax, dword [edi + 8]
cmp ax, 7
je 0x403839
jg 0x40381b
cmp ax, 6
jne 0x402a98
test edx, edx
je 0x402a9c
mov eax, dword [ebp - 0x54]
test byte [eax + 0x28], 8
je 0x40380d
sub esp, 0xc
push eax
call fcn.00407420
mov eax, dword [0x4136c0]
add esp, 0x10
mov edx, dword [ebp - 0x30]
mov word [edx + 0x10], ax
mov ecx, dword [ebp - 0x30]
mov word [ecx + 8], 9
jmp 0x402a9c
cmp ax, 8
je 0x40386b
cmp ax, 0xa
jne 0x402a98
mov edi, dword [ebp - 0x30]
mov word [edi + 0x10], 0x14
jmp 0x40325b
test edx, edx
je 0x402a9c
mov ebx, dword [ebp - 0x30]
sub esp, 0xc
mov word [ebx + 8], 0xa
push ebx
call fcn.004051b0
mov word [ebx + 0x10], 0x14
pop eax
mov eax, dword [ebp - 0x54]
push eax
call fcn.00407420
add esp, 0x10
jmp 0x402a9c
test edx, edx
je 0x402a9c
jmp 0x4032f2
mov eax, dword [ebp - 0x50]
sub esp, 8
push eax
mov eax, dword [ebp - 0x54]
add eax, 0x50
push eax
call fcn.00401670
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov edi, dword [ebp - 0x50]
add esp, 0x10
sub dword [ecx + 0x64], edi
jmp 0x4037bb
mov word [eax + 0xa], 0
mov dword [ebp - 0x4c], 1
jmp 0x40373d
mov edx, dword [esi + 0x1c]
jmp 0x403720
mov eax, dword [ebp - 0x54]
mov dword [eax + 0x28], 1
mov dword [ebp - 0x4c], 0
jmp 0x4036bd
sub esp, 0xc
push edi
call fcn.00407400
add esp, 0x10
and dword [edi + 0x28], 0xffffff7f
mov dword [ebp - 0x4c], 0
jmp 0x4036bd
mov edi, dword [ebp - 0x54]
sub esp, 0xc
push edi
call fcn.00407400
add esp, 0x10
mov dword [ebp - 0x4c], 0
jmp 0x4036bd
mov word [ebx + 0xa], 0
jmp 0x403012
mov edx, dword [esi + 0x1c]
jmp 0x402fb9
cmp word [esi + 0xa], 0
jne 0x40392a
mov eax, dword [ebp - 0x44]
cmp eax, dword [edi + 0x64]
je 0x403998
mov edi, dword [ebp - 0x30]
mov word [edi + 0x16], 0
mov dword [ebp - 0x4c], 0
jmp 0x402a9c
cmp byte [esi + 0x28], 0x1b
jne 0x40363e
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebx + 0x1c]
or eax, 1
mov word [ebx + 0x1c], ax
mov dword [ebp + 8], ebx
jmp 0x402bbf
mov edx, dword [ebp - 0x68]
sub esp, 8
push edx
mov eax, dword [ebp - 0x54]
push eax
call fcn.00401850
add esp, 0x10
jmp 0x403633
sub esp, 8
push 0x14
push 0
mov eax, dword [esi + 0x18]
inc eax
push eax
mov eax, dword [ebp - 0x68]
push eax
push esi
mov eax, dword [ebp - 0x30]
push eax
call fcn.00404c60
add esp, 0x20
jmp 0x4032f2
inc dword [0x413350]
cmp word [edi + 0xa], 0
je 0x4039ad
mov eax, dword [esi + 0x1c]
cmp eax, dword [edi + 0x4c]
je 0x4039c2
mov edx, dword [ebp - 0x30]
mov word [edx + 0x16], 0
mov dword [ebp - 0x4c], 0
jmp 0x402a9c
mov ecx, dword [ebp - 0x30]
movsx eax, word [ecx + 0x16]
inc eax
cwde
mov word [ecx + 0x16], ax
cmp eax, dword [0x40d050]
je 0x4039e9
jg 0x403a78
mov dword [ebp - 0x4c], 0
jmp 0x402a9c
mov edi, dword [ebp - 0x30]
mov ebx, dword [ecx + 0x50]
mov edx, dword [edi + 0x64]
mov eax, dword [edi + 0x80]
movzx ecx, word [edi + 0x18]
cmp eax, edx
jbe 0x403a02
mov eax, edx
shr eax, 1
xor edx, edx
div ecx
cmp eax, 1
ja 0x403a12
mov eax, 2
mov edx, dword [ebp - 0x30]
imul eax, ecx
xor edi, edi
sub esp, 0xc
mov dword [edx + 0x84], eax
mov word [edx + 0xa], 0
mov word [edx + 0x8a], di
mov eax, dword [esi + 0x1c]
mov dword [edx + 0x80], ecx
mov dword [edx + 0x50], eax
push edx
call fcn.00406460
mov ecx, dword [ebp - 0x30]
add esp, 0x10
movsx edx, word [ecx + 0x16]
movzx eax, word [ecx + 0x18]
mov esi, dword [ecx + 0x84]
imul eax, edx
mov edx, dword [ecx + 0x50]
add eax, esi
mov dword [ecx + 0x80], eax
mov eax, ebx
sub eax, edx
test eax, eax
jle 0x40292b
mov dword [ecx + 0x50], ebx
jmp 0x40292b
mov ebx, dword [ebp - 0x30]
sub esp, 0xc
movzx eax, word [ebx + 0x18]
add dword [ebx + 0x80], eax
push ebx
call fcn.00406460
add esp, 0x10
jmp 0x40292b