Function at 0x4e2cd3
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 0x4e2d13
cmp ebx, 0x17
ja 0x4e2cfb
inc dword [0x550508]
jmp 0x4e2d29
cmp ebx, 0x175
ja 0x4e2d0b
inc dword [0x55050c]
jmp 0x4e2d29
inc dword [0x550510]
jmp 0x4e2d29
cmp ebx, 0x578
ja 0x4e2d23
inc dword [0x550514]
jmp 0x4e2d29
inc dword [0x550518]
call fcn.004e4181
mov ecx, esi
mov dword [0x550530], eax
mov dword [0x550534], edx
call fcn.004e19e2
cmp byte [esi + 0x40], 0
lea eax, [edi + ebx]
mov ebx, dword [sym.imp.WS2_32.dll_ntohs]
mov dword [ebp - 0x28], eax
jne 0x4e2d71
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 0x4e2d90
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 0x4e2d9e
xor eax, eax
jmp 0x4e3671
call fcn.004e4186
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 0x4e2d97
test dl, dl
jne 0x4e2dd2
mov cl, byte [edi + 0x11]
jmp 0x4e2dd5
mov cl, byte [edi + 1]
movzx ecx, cl
jmp 0x4e2e1a
mov edx, dword [ebp - 0x28]
inc eax
inc eax
sub edx, eax
js 0x4e2d97
movzx ebx, byte [eax - 1]
cmp edx, ebx
jl 0x4e2d97
dec ecx
je 0x4e2e0a
dec ecx
jne 0x4e2e0d
cmp byte [eax - 1], 8
jne 0x4e2d97
mov ecx, dword [eax]
mov dword [esi + 0x1ec], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0x1f0], ecx
jmp 0x4e2e0d
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 0x4e2dda
cmp dword [esi + 0x44], 1
jne 0x4e2e2c
mov eax, dword [ebp - 0x14]
dec eax
mov word [esi + 0x4e], ax
cmp byte [ebp + 0xc], 0
mov eax, dword [0x550530]
mov dword [esi + 0x64], eax
mov eax, dword [0x550534]
mov dword [esi + 0x68], eax
jne 0x4e2d97
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 0x4e2eab
cmp ecx, 0xfe01
jb 0x4e2d97
cmp byte [ebp - 1], 2
je 0x4e2d97
mov eax, dword [esi + 0x5c]
mov ecx, dword [0x550530]
sub eax, ecx
cmp eax, 0x64
jb 0x4e2e8f
push 0x64
pop eax
xor edx, edx
add eax, ecx
adc edx, dword [0x550534]
mov ecx, esi
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], edx
call fcn.004e1b9e
jmp 0x4e2d97
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 0x4e2ed1
xor ebx, ebx
mov dword [ebp + 8], ebx
movzx edx, word [esi + 0x24]
test dx, dx
jbe 0x4e2f2a
sub ecx, dword [ebp + 0xc]
dec ecx
and ecx, eax
cmp dword [ebp - 0x10], ecx
jne 0x4e2f26
inc byte [esi + 0x1e]
cmp byte [esi + 0x1e], 3
jne 0x4e2f2a
mov ecx, dword [esi + 0x208]
test ecx, ecx
je 0x4e2f2a
dec ecx
and ecx, eax
cmp dword [ebp - 0x10], ecx
jne 0x4e2f16
mov eax, dword [esi + 0x20c]
dec eax
mov ecx, esi
mov dword [esi + 0x1fc], eax
call fcn.004e1a3c
jmp 0x4e2f2a
and dword [esi + 0x20c], 0
and dword [esi + 0x208], 0
jmp 0x4e2f2a
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 0x4e2fd0
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.004e16db
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4e2fc1
test dword [eax + 0x10], 0x7fffffff
je 0x4e2fc1
mov eax, dword [eax + 4]
add dword [ebp + 0xc], eax
mov eax, dword [esi + 0x208]
test eax, eax
je 0x4e2f9b
cmp ebx, eax
jne 0x4e2f9b
mov eax, dword [esi + 0x20c]
mov ecx, esi
mov dword [esi + 0x200], eax
call fcn.004e1a3c
call fcn.004e4186
mov ecx, dword [ebp - 0x20]
sub eax, dword [ecx + 8]
sbb edx, dword [ecx + 0xc]
cmp dword [ebp - 0x40], edx
jg 0x4e2fbb
jl 0x4e2fb5
cmp dword [ebp - 0x44], eax
jae 0x4e2fbb
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 0x4e2f45
cmp dword [ebp - 0x18], 0
je 0x4e2ff9
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.004e1e72
add dword [ebp + 0xc], eax
cmp byte [esi + 0x40], 0
push dword [edi + 4]
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
jne 0x4e302b
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 0x4e3031
call ebx
mov ecx, eax
xor eax, eax
mov edx, dword [0x550530]
mov dword [esi + 0x74], edx
mov edx, dword [0x550534]
mov dword [esi + 0x78], edx
mov edx, ecx
or edx, eax
jne 0x4e304d
xor eax, eax
jmp 0x4e3052
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 0x4e3071
push eax
lea ecx, [esi + 0x194]
call fcn.004e17a2
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4e309f
mov eax, dword [esi + 0x194]
mov edx, ecx
sub edx, eax
mov dword [ebp - 0x20], eax
sub eax, ecx
cmp edx, eax
jae 0x4e309f
sub ecx, dword [ebp - 0x20]
cmp ecx, 0x2710
ja 0x4e309f
push ecx
lea ecx, [esi + 0x13c]
call fcn.004e1789
cmp byte [esi + 0x40], 0
jne 0x4e30c6
push dword [edi + 0xc]
call ebx
cmp eax, 0x7fffffff
jne 0x4e30ba
and dword [ebp - 8], 0
jmp 0x4e3228
push dword [edi + 0xc]
call ebx
mov edi, eax
mov dword [ebp - 8], edi
jmp 0x4e30dc
push dword [edi + 8]
call ebx
cmp eax, 0x7fffffff
je 0x4e30b1
push dword [edi + 8]
call ebx
mov edi, eax
mov dword [ebp - 8], eax
test edi, edi
je 0x4e3228
push edi
lea ecx, [esi + 0x13c]
call fcn.004e17a2
cmp dword [esi + 0x220], 0
jne 0x4e30ff
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 0x4e3117
mov eax, ecx
xor ecx, ecx
jmp 0x4e311f
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 [0x550534]
mov eax, dword [esi + 0x21c]
cmp ecx, edi
jb 0x4e3228
ja 0x4e3161
mov ecx, dword [0x550530]
cmp ecx, ebx
jbe 0x4e3228
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 0x4e31bd
mov edx, ecx
mov edi, dword [ebp - 0x20]
cmp edi, ecx
mov eax, edi
jg 0x4e31c8
mov eax, ecx
test edx, edx
jle 0x4e31d0
neg edx
jmp 0x4e31d8
test eax, eax
jge 0x4e31f4
neg eax
mov edx, eax
test edx, edx
je 0x4e31f4
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.004e1b84
cmp eax, dword [ebp - 0x44]
jbe 0x4e324c
mov ecx, edi
call fcn.004e1b84
sub eax, dword [ebp - 0x44]
mov ecx, edi
push eax
call fcn.004e1789
cmp dword [ebp - 8], 0
je 0x4e326b
cmp dword [ebp + 0xc], 1
jb 0x4e326b
push dword [ebp - 0x40]
mov ecx, esi
push dword [ebp - 0x44]
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.004e1f3b
movzx eax, word [esi + 0x24]
cmp dword [ebp + 8], eax
jg 0x4e3400
cmp byte [esi + 0x40], 0
mov eax, dword [ebp - 0x30]
jne 0x4e328d
movzx eax, byte [eax + 0x10]
imul eax, eax, 0x15e
jmp 0x4e3296
push dword [eax + 0xc]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esi + 0x3c], eax
test eax, eax
jne 0x4e32bc
mov eax, dword [0x550530]
mov ecx, dword [0x550534]
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 0x4e32db
mov ecx, dword [esi + 0xb0]
mov dword [esi + 0x44], 2
call dword [esi + 0xa4]
jmp 0x4e32f0
cmp eax, 6
jne 0x4e32f0
movzx eax, word [esi + 0x24]
cmp eax, dword [ebp + 8]
jne 0x4e32f0
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 0x4e3315
mov eax, dword [ebp - 0x24]
inc eax
mov word [esi + 0x54], ax
xor ebx, ebx
cmp dword [ebp + 8], ebx
jle 0x4e3340
mov ax, word [esi + 0x50]
sub ax, word [esi + 0x24]
mov ecx, esi
movzx eax, ax
push eax
call fcn.004e1d42
cmp eax, 2
je 0x4e3340
mov eax, edi
add word [esi + 0x24], ax
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x4e331c
cmp word [esi + 0x24], 0
jbe 0x4e3370
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.004e16db
test eax, eax
jne 0x4e3370
dec edi
mov word [esi + 0x24], di
test di, di
ja 0x4e334b
cmp word [esi + 0x24], 1
jne 0x4e33b9
movzx eax, word [esi + 0x50]
dec eax
push eax
lea ecx, [esi + 0x238]
call fcn.004e16db
mov ecx, eax
test dword [ecx + 0x10], 0x7fffffff
jne 0x4e33b9
mov eax, dword [esi + 0x8c]
push 0x64
cdq
pop edi
idiv edi
cmp eax, dword [ecx]
jl 0x4e33b9
push ecx
mov ecx, esi
call fcn.004e23b8
cmp word [esi + 0x1c], 0
jne 0x4e33b9
mov ecx, esi
call fcn.004e18d7
mov al, byte [esi + 0x38]
test al, 2
je 0x4e3400
movzx ecx, word [esi + 0x50]
movzx edx, word [esi + 0x24]
movzx edi, word [esi + 0x54]
sub ecx, edx
cmp cx, di
je 0x4e33da
and al, 0xfd
mov byte [esi + 0x38], al
jmp 0x4e3400
push ecx
lea ecx, [esi + 0x238]
call fcn.004e16db
test eax, eax
je 0x4e3400
test dword [eax + 0x10], 0x7fffffff
jbe 0x4e3400
inc edi
push eax
mov ecx, esi
mov word [esi + 0x54], di
call fcn.004e23b8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4e341b
movzx ecx, byte [eax - 1]
push ecx
push eax
mov eax, dword [ebp - 0x10]
add eax, 2
push eax
mov ecx, esi
call fcn.004e2b49
cmp dword [esi + 0x44], 3
jne 0x4e3446
mov ecx, esi
call fcn.004e206a
push eax
mov ecx, esi
call fcn.004e251a
test al, al
je 0x4e3446
mov ecx, dword [esi + 0xb0]
push 2
pop edx
mov dword [esi + 0x44], edx
call dword [esi + 0xa4]
cmp byte [ebp - 1], 2
je 0x4e2d97
mov ecx, dword [esi + 0x44]
cmp ecx, 2
je 0x4e3466
cmp ecx, 3
je 0x4e3466
cmp ecx, 6
jne 0x4e2d97
cmp byte [ebp - 1], 1
jne 0x4e3480
mov al, byte [esi + 0x38]
test al, 1
jne 0x4e3480
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 0x4e359d
mov edi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
sub edi, edx
mov dword [ebp + 8], edi
je 0x4e34aa
cmp ecx, 6
je 0x4e34aa
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 0x4e3517
mov ax, word [esi + 0x4c]
cmp ax, word [esi + 0x4e]
jne 0x4e3517
cmp dword [esi + 0x44], 6
je 0x4e3508
mov eax, dword [esi + 0xbc]
imul eax, eax, 3
mov dword [esi + 0x44], 4
cmp eax, 0x3c
jb 0x4e34df
push 0x3c
pop eax
xor ecx, ecx
add eax, dword [0x550530]
push 3
adc ecx, dword [0x550534]
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.004e21bb
xor eax, eax
mov word [esi + 0x1c], ax
cmp word [esi + 0x1c], 0
je 0x4e3581
movzx edi, word [esi + 0x4e]
inc edi
lea ebx, [esi + 0x230]
push edi
mov ecx, ebx
call fcn.004e16db
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4e3581
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 0x4e3562
cmp dword [esi + 0x44], 6
je 0x4e3562
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.0046b3e9
mov eax, 0xffff
add word [esi + 0x1c], ax
jmp 0x4e34b1
mov eax, dword [esi + 0x5c]
mov ecx, dword [0x550530]
sub eax, ecx
cmp eax, 0x64
jb 0x4e3630
push 0x64
pop eax
jmp 0x4e3630
test byte [esi + 0x38], 1
je 0x4e35b1
mov cx, word [ebp - 0x14]
cmp cx, word [esi + 0x4c]
ja 0x4e2d97
cmp eax, 0x3ff
ja 0x4e2d97
inc eax
lea ebx, [esi + 0x230]
cmp eax, dword [ebx]
jbe 0x4e35d4
push eax
mov eax, dword [ebp - 0x2c]
inc eax
push eax
mov ecx, ebx
call fcn.004e16f2
push dword [ebp - 0x2c]
mov ecx, ebx
call fcn.004e16db
test eax, eax
jne 0x4e2d97
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x1c]
lea ecx, [eax + 4]
mov dword [ebp + 8], eax
call fcn.0046b3f1
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 [0x550530]
sub eax, ecx
cmp eax, 1
jb 0x4e3630
xor eax, eax
inc eax
xor edx, edx
add eax, ecx
adc edx, dword [0x550534]
mov ecx, esi
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], edx
call fcn.004e1b9e
mov eax, dword [esi + 0x44]
cmp eax, 2
je 0x4e3654
cmp eax, 3
jne 0x4e366e
cmp dword [esi + 0x20], 0x960
ja 0x4e3667
mov eax, dword [0x550530]
sub eax, dword [esi + 0x5c]
js 0x4e366e
mov ecx, esi
call fcn.004e1b9e
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8