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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x30], edi
mov esi, ecx
cmp ebx, 0x2d3
ja 0x4e2a29
cmp ebx, 0x17
ja 0x4e2a11
inc dword [0x550500]
jmp 0x4e2a3f
cmp ebx, 0x175
ja 0x4e2a21
inc dword [0x550504]
jmp 0x4e2a3f
inc dword [0x550508]
jmp 0x4e2a3f
cmp ebx, 0x578
ja 0x4e2a39
inc dword [0x55050c]
jmp 0x4e2a3f
inc dword [0x550510]
call fcn.004e3e97
mov ecx, esi
mov dword [0x550528], eax
mov dword [0x55052c], edx
call fcn.004e16f9
cmp byte [esi + 0x40], 0
lea eax, [edi + ebx]
mov ebx, dword [sym.imp.WS2_32.dll_ntohs]
mov dword [ebp - 0x28], eax
jne 0x4e2a87
movzx eax, word [edi + 0x13]
push eax
call ebx
movzx eax, ax
mov dword [ebp - 0x14], eax
movzx eax, word [edi + 0x15]
push eax
call ebx
movzx eax, ax
mov dword [ebp - 0x24], eax
mov al, byte [edi + 0x12]
jmp 0x4e2aa6
movzx eax, word [edi + 0x10]
push eax
call ebx
movzx eax, ax
mov dword [ebp - 0x14], eax
movzx eax, word [edi + 0x12]
push eax
call ebx
movzx eax, ax
mov dword [ebp - 0x24], eax
mov al, byte [edi]
shr al, 4
mov byte [ebp - 1], al
cmp al, 5
jb 0x4e2ab4
xor eax, eax
jmp 0x4e3387
call fcn.004e3e9c
and dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x34], edx
mov dl, byte [esi + 0x40]
test dl, dl
sete cl
mov dword [ebp - 0x38], eax
dec ecx
and ecx, 0xfffffffd
add ecx, 0x17
lea eax, [ecx + edi]
mov dword [ebp - 0x1c], eax
cmp ecx, dword [ebp + 8]
ja 0x4e2aad
test dl, dl
jne 0x4e2ae8
mov cl, byte [edi + 0x11]
jmp 0x4e2aeb
mov cl, byte [edi + 1]
movzx ecx, cl
jmp 0x4e2b30
mov edx, dword [ebp - 0x28]
inc eax
inc eax
sub edx, eax
js 0x4e2aad
movzx ebx, byte [eax - 1]
cmp edx, ebx
jl 0x4e2aad
dec ecx
je 0x4e2b20
dec ecx
jne 0x4e2b23
cmp byte [eax - 1], 8
jne 0x4e2aad
mov ecx, dword [eax]
mov dword [esi + 0x1ec], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0x1f0], ecx
jmp 0x4e2b23
mov dword [ebp - 0x18], eax
movzx edx, byte [eax - 1]
movzx ecx, byte [eax - 2]
add eax, edx
mov dword [ebp - 0x1c], eax
test ecx, ecx
jne 0x4e2af0
cmp dword [esi + 0x44], 1
jne 0x4e2b42
mov eax, dword [ebp - 0x14]
dec eax
mov word [esi + 0x4e], ax
cmp byte [ebp + 0xc], 0
mov eax, dword [0x550528]
mov dword [esi + 0x64], eax
mov eax, dword [0x55052c]
mov dword [esi + 0x68], eax
jne 0x4e2aad
movzx ecx, word [ebp - 0x14]
movzx eax, word [esi + 0x4e]
mov dword [ebp - 0x2c], ecx
sub ecx, eax
dec ecx
mov eax, 0xffff
and ecx, eax
mov dword [ebp - 0x3c], ecx
cmp ecx, 0x1ff
jb 0x4e2bc1
cmp ecx, 0xfe01
jb 0x4e2aad
cmp byte [ebp - 1], 2
je 0x4e2aad
mov eax, dword [esi + 0x5c]
mov ecx, dword [0x550528]
sub eax, ecx
cmp eax, 0x64
jb 0x4e2ba5
push 0x64
pop eax
xor edx, edx
add eax, ecx
adc edx, dword [0x55052c]
mov ecx, esi
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], edx
call fcn.004e18b5
jmp 0x4e2aad
movzx ebx, word [ebp - 0x24]
movzx ecx, word [esi + 0x50]
movzx edx, word [esi + 0x24]
mov dword [ebp - 0x10], ebx
sub ebx, ecx
lea ebx, [ebx + edx + 1]
and ebx, eax
cmp ebx, edx
mov dword [ebp + 0xc], edx
mov dword [ebp + 8], ebx
jle 0x4e2be7
xor ebx, ebx
mov dword [ebp + 8], ebx
movzx edx, word [esi + 0x24]
test dx, dx
jbe 0x4e2c40
sub ecx, dword [ebp + 0xc]
dec ecx
and ecx, eax
cmp dword [ebp - 0x10], ecx
jne 0x4e2c3c
inc byte [esi + 0x1e]
cmp byte [esi + 0x1e], 3
jne 0x4e2c40
mov ecx, dword [esi + 0x208]
test ecx, ecx
je 0x4e2c40
dec ecx
and ecx, eax
cmp dword [ebp - 0x10], ecx
jne 0x4e2c2c
mov eax, dword [esi + 0x20c]
dec eax
mov ecx, esi
mov dword [esi + 0x1fc], eax
call fcn.004e1753
jmp 0x4e2c40
and dword [esi + 0x20c], 0
and dword [esi + 0x208], 0
jmp 0x4e2c40
mov byte [esi + 0x1e], 0
and dword [ebp + 0xc], 0
or dword [ebp - 0x44], 0xffffffff
and dword [ebp - 8], 0
mov dword [ebp - 0x40], SysReAllocString
test ebx, ebx
jle 0x4e2ce6
movzx eax, word [esi + 0x24]
movzx ebx, word [esi + 0x50]
sub ebx, eax
add ebx, dword [ebp - 8]
lea ecx, [esi + 0x238]
and ebx, 0xffff
push ebx
call fcn.004e13f2
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4e2cd7
test dword [eax + 0x10], 0x7fffffff
je 0x4e2cd7
mov eax, dword [eax + 4]
add dword [ebp + 0xc], eax
mov eax, dword [esi + 0x208]
test eax, eax
je 0x4e2cb1
cmp ebx, eax
jne 0x4e2cb1
mov eax, dword [esi + 0x20c]
mov ecx, esi
mov dword [esi + 0x200], eax
call fcn.004e1753
call fcn.004e3e9c
mov ecx, dword [ebp - 0x20]
sub eax, dword [ecx + 8]
sbb edx, dword [ecx + 0xc]
cmp dword [ebp - 0x40], edx
jg 0x4e2cd1
jl 0x4e2ccb
cmp dword [ebp - 0x44], eax
jae 0x4e2cd1
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jl 0x4e2c5b
cmp dword [ebp - 0x18], 0
je 0x4e2d0f
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax - 1]
push ecx
push eax
mov eax, dword [ebp - 0x10]
add eax, 2
and eax, 0xffff
push eax
mov ecx, esi
call fcn.004e1b89
add dword [ebp + 0xc], eax
cmp byte [esi + 0x40], 0
push dword [edi + 4]
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
jne 0x4e2d41
call ebx
push dword [edi + 8]
mov dword [ebp - 0x20], eax
call ebx
and dword [ebp - 8], 0
mov ecx, eax
mov eax, dword [ebp - 0x20]
mov edx, 0xf4240
mul edx
add ecx, eax
mov eax, dword [ebp - 8]
adc eax, edx
jmp 0x4e2d47
call ebx
mov ecx, eax
xor eax, eax
mov edx, dword [0x550528]
mov dword [esi + 0x74], edx
mov edx, dword [0x55052c]
mov dword [esi + 0x78], edx
mov edx, ecx
or edx, eax
jne 0x4e2d63
xor eax, eax
jmp 0x4e2d68
mov eax, dword [ebp - 0x38]
sub eax, ecx
mov ecx, dword [esi + 0x194]
mov dword [esi + 0x58], eax
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x4e2d87
push eax
lea ecx, [esi + 0x194]
call fcn.004e14b9
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4e2db5
mov eax, dword [esi + 0x194]
mov edx, ecx
sub edx, eax
mov dword [ebp - 0x20], eax
sub eax, ecx
cmp edx, eax
jae 0x4e2db5
sub ecx, dword [ebp - 0x20]
cmp ecx, 0x2710
ja 0x4e2db5
push ecx
lea ecx, [esi + 0x13c]
call fcn.004e14a0
cmp byte [esi + 0x40], 0
jne 0x4e2ddc
push dword [edi + 0xc]
call ebx
cmp eax, 0x7fffffff
jne 0x4e2dd0
and dword [ebp - 8], 0
jmp 0x4e2f3e
push dword [edi + 0xc]
call ebx
mov edi, eax
mov dword [ebp - 8], edi
jmp 0x4e2df2
push dword [edi + 8]
call ebx
cmp eax, 0x7fffffff
je 0x4e2dc7
push dword [edi + 8]
call ebx
mov edi, eax
mov dword [ebp - 8], eax
test edi, edi
je 0x4e2f3e
push edi
lea ecx, [esi + 0x13c]
call fcn.004e14b9
cmp dword [esi + 0x220], 0
jne 0x4e2e15
mov dword [esi + 0x220], edi
mov edx, dword [esi + 0x220]
mov eax, edx
mov ecx, edi
sub eax, edi
sub ecx, edx
cmp eax, ecx
jbe 0x4e2e2d
mov eax, ecx
xor ecx, ecx
jmp 0x4e2e35
xor ecx, ecx
neg eax
adc ecx, ecx
neg ecx
add dword [esi + 0x214], eax
mov edi, dword [esi + 0x228]
mov ebx, dword [esi + 0x224]
adc dword [esi + 0x218], ecx
inc dword [esi + 0x21c]
mov ecx, dword [0x55052c]
mov eax, dword [esi + 0x21c]
cmp ecx, edi
jb 0x4e2f3e
ja 0x4e2e77
mov ecx, dword [0x550528]
cmp ecx, ebx
jbe 0x4e2f3e
mov ecx, dword [esi + 0x210]
cdq
push edx
push eax
push dword [esi + 0x218]
mov dword [ebp - 0x20], ecx
push dword [esi + 0x214]
call fcn.004010e0
mov edx, dword [ebp - 0x20]
mov dword [esi + 0x210], eax
mov ecx, dword [esi + 0x210]
add ebx, 0x1388
push 0
pop eax
adc edi, eax
cmp dword [ebp - 0x20], ecx
mov dword [esi + 0x224], ebx
mov dword [esi + 0x228], edi
mov dword [esi + 0x214], eax
mov dword [esi + 0x218], eax
mov dword [esi + 0x21c], eax
jl 0x4e2ed3
mov edx, ecx
mov edi, dword [ebp - 0x20]
cmp edi, ecx
mov eax, edi
jg 0x4e2ede
mov eax, ecx
test edx, edx
jle 0x4e2ee6
neg edx
jmp 0x4e2eee
test eax, eax
jge 0x4e2f0a
neg eax
mov edx, eax
test edx, edx
je 0x4e2f0a
mov eax, dword [esi + 0x220]
sub eax, edx
add ecx, edx
mov dword [esi + 0x220], eax
mov dword [esi + 0x210], ecx
add edi, edx
mov eax, dword [esi + 0x210]
sub eax, edi
cdq
mov edi, eax
mov eax, dword [esi + 0x22c]
push 0
mov ebx, edx
cdq
push 7
push edx
push eax
call fcn.00401270
push 0
add edi, eax
push 8
adc ebx, edx
push ebx
push edi
call fcn.004010e0
mov dword [esi + 0x22c], eax
lea edi, [esi + 0x13c]
mov ecx, edi
call fcn.004e189b
cmp eax, dword [ebp - 0x44]
jbe 0x4e2f62
mov ecx, edi
call fcn.004e189b
sub eax, dword [ebp - 0x44]
mov ecx, edi
push eax
call fcn.004e14a0
cmp dword [ebp - 8], 0
je 0x4e2f81
cmp dword [ebp + 0xc], 1
jb 0x4e2f81
push dword [ebp - 0x40]
mov ecx, esi
push dword [ebp - 0x44]
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.004e1c51
movzx eax, word [esi + 0x24]
cmp dword [ebp + 8], eax
jg 0x4e3116
cmp byte [esi + 0x40], 0
mov eax, dword [ebp - 0x30]
jne 0x4e2fa3
movzx eax, byte [eax + 0x10]
imul eax, eax, 0x15e
jmp 0x4e2fac
push dword [eax + 0xc]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esi + 0x3c], eax
test eax, eax
jne 0x4e2fd2
mov eax, dword [0x550528]
mov ecx, dword [0x55052c]
add eax, 0x3a98
adc ecx, 0
mov dword [esi + 0x124], eax
mov dword [esi + 0x128], ecx
mov eax, dword [esi + 0x44]
xor edx, edx
inc edx
cmp eax, edx
jne 0x4e2ff1
mov ecx, dword [esi + 0xb0]
mov dword [esi + 0x44], 2
call dword [esi + 0xa4]
jmp 0x4e3006
cmp eax, 6
jne 0x4e3006
movzx eax, word [esi + 0x24]
cmp eax, dword [ebp + 8]
jne 0x4e3006
mov dword [esi + 0x44], 8
mov ecx, dword [ebp - 0x10]
movzx eax, word [esi + 0x54]
mov edi, 0xffff
inc ecx
and ecx, edi
mov edx, ecx
sub edx, eax
sub eax, ecx
and edx, edi
and eax, edi
cmp edx, eax
jae 0x4e302b
mov eax, dword [ebp - 0x24]
inc eax
mov word [esi + 0x54], ax
xor ebx, ebx
cmp dword [ebp + 8], ebx
jle 0x4e3056
mov ax, word [esi + 0x50]
sub ax, word [esi + 0x24]
mov ecx, esi
movzx eax, ax
push eax
call fcn.004e1a59
cmp eax, 2
je 0x4e3056
mov eax, edi
add word [esi + 0x24], ax
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x4e3032
cmp word [esi + 0x24], 0
jbe 0x4e3086
movzx ebx, word [esi + 0x50]
movzx edi, word [esi + 0x24]
movzx eax, di
mov ecx, ebx
sub ecx, eax
push ecx
lea ecx, [esi + 0x238]
call fcn.004e13f2
test eax, eax
jne 0x4e3086
dec edi
mov word [esi + 0x24], di
test di, di
ja 0x4e3061
cmp word [esi + 0x24], 1
jne 0x4e30cf
movzx eax, word [esi + 0x50]
dec eax
push eax
lea ecx, [esi + 0x238]
call fcn.004e13f2
mov ecx, eax
test dword [ecx + 0x10], 0x7fffffff
jne 0x4e30cf
mov eax, dword [esi + 0x8c]
push 0x64
cdq
pop edi
idiv edi
cmp eax, dword [ecx]
jl 0x4e30cf
push ecx
mov ecx, esi
call fcn.004e20ce
cmp word [esi + 0x1c], 0
jne 0x4e30cf
mov ecx, esi
call fcn.004e15ee
mov al, byte [esi + 0x38]
test al, 2
je 0x4e3116
movzx ecx, word [esi + 0x50]
movzx edx, word [esi + 0x24]
movzx edi, word [esi + 0x54]
sub ecx, edx
cmp cx, di
je 0x4e30f0
and al, 0xfd
mov byte [esi + 0x38], al
jmp 0x4e3116
push ecx
lea ecx, [esi + 0x238]
call fcn.004e13f2
test eax, eax
je 0x4e3116
test dword [eax + 0x10], 0x7fffffff
jbe 0x4e3116
inc edi
push eax
mov ecx, esi
mov word [esi + 0x54], di
call fcn.004e20ce
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4e3131
movzx ecx, byte [eax - 1]
push ecx
push eax
mov eax, dword [ebp - 0x10]
add eax, 2
push eax
mov ecx, esi
call fcn.004e285f
cmp dword [esi + 0x44], 3
jne 0x4e315c
mov ecx, esi
call fcn.004e1d80
push eax
mov ecx, esi
call fcn.004e2230
test al, al
je 0x4e315c
mov ecx, dword [esi + 0xb0]
push 2
pop edx
mov dword [esi + 0x44], edx
call dword [esi + 0xa4]
cmp byte [ebp - 1], 2
je 0x4e2aad
mov ecx, dword [esi + 0x44]
cmp ecx, 2
je 0x4e317c
cmp ecx, 3
je 0x4e317c
cmp ecx, 6
jne 0x4e2aad
cmp byte [ebp - 1], 1
jne 0x4e3196
mov al, byte [esi + 0x38]
test al, 1
jne 0x4e3196
or al, 1
mov byte [esi + 0x38], al
mov ax, word [ebp - 0x14]
mov word [esi + 0x4c], ax
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x4e32b3
mov edi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
sub edi, edx
mov dword [ebp + 8], edi
je 0x4e31c0
cmp ecx, 6
je 0x4e31c0
mov ecx, dword [esi + 0xb0]
push edi
call dword [esi + 0x98]
inc word [esi + 0x4e]
add dword [esi + 0x20], edi
test byte [esi + 0x38], 1
je 0x4e322d
mov ax, word [esi + 0x4c]
cmp ax, word [esi + 0x4e]
jne 0x4e322d
cmp dword [esi + 0x44], 6
je 0x4e321e
mov eax, dword [esi + 0xbc]
imul eax, eax, 3
mov dword [esi + 0x44], 4
cmp eax, 0x3c
jb 0x4e31f5
push 0x3c
pop eax
xor ecx, ecx
add eax, dword [0x550528]
push 3
adc ecx, dword [0x55052c]
pop edx
mov dword [esi + 0x120], ecx
mov ecx, dword [esi + 0xb0]
mov dword [esi + 0x11c], eax
call dword [esi + 0xa4]
push 0
mov ecx, esi
call fcn.004e1ed1
xor eax, eax
mov word [esi + 0x1c], ax
cmp word [esi + 0x1c], 0
je 0x4e3297
movzx edi, word [esi + 0x4e]
inc edi
lea ebx, [esi + 0x230]
push edi
mov ecx, ebx
call fcn.004e13f2
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4e3297
and edi, dword [ebx]
mov eax, dword [ebx + 4]
and dword [eax + edi*4], 0
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
test edi, edi
jbe 0x4e3278
cmp dword [esi + 0x44], 6
je 0x4e3278
mov ecx, dword [esi + 0xb0]
mov edx, eax
push edi
add edx, 4
call dword [esi + 0x98]
mov ecx, dword [ebp + 0xc]
inc word [esi + 0x4e]
add dword [esi + 0x20], edi
mov dl, 1
call fcn.0046b197
mov eax, 0xffff
add word [esi + 0x1c], ax
jmp 0x4e31c7
mov eax, dword [esi + 0x5c]
mov ecx, dword [0x550528]
sub eax, ecx
cmp eax, 0x64
jb 0x4e3346
push 0x64
pop eax
jmp 0x4e3346
test byte [esi + 0x38], 1
je 0x4e32c7
mov cx, word [ebp - 0x14]
cmp cx, word [esi + 0x4c]
ja 0x4e2aad
cmp eax, 0x3ff
ja 0x4e2aad
inc eax
lea ebx, [esi + 0x230]
cmp eax, dword [ebx]
jbe 0x4e32ea
push eax
mov eax, dword [ebp - 0x2c]
inc eax
push eax
mov ecx, ebx
call fcn.004e1409
push dword [ebp - 0x2c]
mov ecx, ebx
call fcn.004e13f2
test eax, eax
jne 0x4e2aad
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x1c]
lea ecx, [eax + 4]
mov dword [ebp + 8], eax
call fcn.0046b19f
mov edi, eax
mov eax, dword [ebp + 8]
push eax
push dword [ebp - 0x1c]
mov dword [edi], eax
lea eax, [edi + 4]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0x2c]
and eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [ecx + eax*4], edi
mov eax, dword [esi + 0x5c]
add esp, 0xc
inc word [esi + 0x1c]
mov ecx, dword [0x550528]
sub eax, ecx
cmp eax, 1
jb 0x4e3346
xor eax, eax
inc eax
xor edx, edx
add eax, ecx
adc edx, dword [0x55052c]
mov ecx, esi
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], edx
call fcn.004e18b5
mov eax, dword [esi + 0x44]
cmp eax, 2
je 0x4e336a
cmp eax, 3
jne 0x4e3384
cmp dword [esi + 0x20], 0x960
ja 0x4e337d
mov eax, dword [0x550528]
sub eax, dword [esi + 0x5c]
js 0x4e3384
mov ecx, esi
call fcn.004e18b5
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8