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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x523050
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x55609c]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi]
push eax
push ecx
call fcn.004fd1a0
push 0
push 0x3938700
call fcn.0047d900
mov edi, dword [0x55dcc8]
mov ecx, dword [esi + 0x50]
mov ebx, dword [esi + 0x54]
mov dword [esp + 0x1c], eax
add esp, 8
mov eax, edi
sub eax, ecx
mov ecx, dword [0x55dccc]
sbb ecx, ebx
cmp ecx, edx
jl 0x4fd9d1
jg 0x4fd969
cmp eax, dword [esp + 0x14]
jbe 0x4fd9d1
mov dword [esi + 0x50], edi
mov edx, dword [0x55dccc]
xor edi, edi
mov dword [esi + 0x54], edx
mov dword [esp + 0x14], edi
call fcn.005147f0
lea edx, [esp + 0x14]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], eax
call fcn.004ffab0
push eax
lea eax, [esi + 0x40]
mov dword [esp + 0x7c], edi
call fcn.004fe1d0
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [esp + 0x40]
cmp eax, edi
je 0x4fd9b7
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x14]
neg eax
sbb eax, eax
test eax, fcn.004b2590
je 0x4fd9d1
mov edi, dword [esp + 0x20]
mov eax, edi
jmp 0x4fdc92
mov eax, dword [esi + 0x44]
test eax, eax
lea ebx, [esi + 0x40]
je 0x4fd9c6
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x6bca1af3
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x4fd9c6
mov eax, dword [ebx + 4]
test eax, eax
je 0x4fda12
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x6bca1af3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x4fda18
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebx + 4]
mov edi, ecx
cmp edi, dword [ebx + 8]
mov dword [esp + 0x24], ecx
jbe 0x4fda2c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebx + 8]
cmp dword [ebx + 4], eax
mov dword [esp + 0x14], eax
jbe 0x4fda40
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, edi
cmp ebx, ebx
je 0x4fda4a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esp + 0x14]
je 0x4fdae0
cmp edi, dword [ebx + 8]
jb 0x4fda5f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, edi
call fcn.004d21d0
test al, al
je 0x4fda8e
cmp edi, dword [ebx + 8]
jb 0x4fda75
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x28]
cmp dword [edx], 0
sete al
cmp dword [edi], 0
sete cl
cmp cl, al
jne 0x4fda8e
cmp edi, dword [ebx + 8]
jmp 0x4fdabb
cmp edi, dword [ebx + 8]
jb 0x4fdaa4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [ebx + 8]
jb 0x4fdaa4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x28]
lea ebx, [edi + 0x1c]
push edi
call fcn.004ff350
add esp, 4
test al, al
je 0x4fdac7
cmp edi, dword [esi + 0x48]
jb 0x4fdac3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov dword [esp + 0x24], edi
cmp edi, dword [esi + 0x48]
lea ebx, [esi + 0x40]
jb 0x4fdad5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add edi, 0x98
jmp 0x4fda40
mov edx, dword [0x55e458]
or edx, dword [0x55e45c]
jne 0x4fdaf9
push 0x55e458
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov eax, dword [0x55e45c]
mov ecx, dword [0x55e458]
push 0
push 0xea60
push eax
push ecx
call fcn.00515b20
push 0
push 0x3e8
push edx
push eax
call fcn.00515a70
mov ebx, dword [0x55dcc8]
mov ecx, dword [esi + 0x68]
mov edi, ebx
sub edi, ecx
mov ecx, dword [0x55dccc]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x6c]
sbb ecx, eax
cmp ecx, edx
jl 0x4fdbb9
jg 0x4fdb48
cmp edi, dword [esp + 0x14]
jbe 0x4fdbb9
mov dword [esi + 0x68], ebx
mov edx, dword [0x55dccc]
xor edi, edi
mov dword [esi + 0x6c], edx
mov dword [esp + 0x14], edi
call fcn.005147f0
lea edx, [esp + 0x14]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], eax
call fcn.004ff660
push eax
lea eax, [esi + 0x58]
mov dword [esp + 0x7c], 1
call fcn.004fe340
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x4fdb9a
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x14]
neg eax
sbb eax, eax
test eax, fcn.004b2590
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
jne 0x4fdc8c
mov edi, dword [esi + 0x5c]
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add esi, 0x58
cmp edi, dword [esi + 8]
jbe 0x4fdbcc
call ebx
mov eax, dword [esi + 8]
cmp dword [esi + 4], eax
mov dword [esp + 0x14], eax
jbe 0x4fdbe0
call ebx
lea ebx, [ebx]
cmp esi, esi
je 0x4fdbe6
call ebx
cmp edi, dword [esp + 0x14]
je 0x4fdc8c
cmp edi, dword [esi + 8]
jb 0x4fdbf7
call ebx
mov ecx, dword [esp + 0x28]
cmp dword [ecx], 0
sete dl
cmp dword [edi], 0
sete al
cmp al, dl
jne 0x4fdc49
cmp edi, dword [esi + 8]
jb 0x4fdc12
call ebx
mov eax, dword [esp + 0x24]
lea ecx, [edi + 0x38]
add eax, 0x54
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4fdc40
test dl, dl
je 0x4fdc3c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4fdc40
add eax, 2
add ecx, 2
test dl, dl
jne 0x4fdc20
xor eax, eax
jmp 0x4fdc45
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4fdc55
cmp edi, dword [esi + 8]
jb 0x4fdc50
call ebx
add edi, 0x7c
jmp 0x4fdbe0
cmp word [esp + 0x4c], 2
jne 0x4fdc64
mov ecx, dword [esp + 0x4e]
push ecx
jmp 0x4fdc69
mov edx, dword [esp + 0x4e]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
cmp edi, dword [esi + 8]
movzx ebx, ax
jb 0x4fdc7d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x20]
mov ecx, ebx
call fcn.00439600
mov eax, esi
jmp 0x4fdc9d
mov eax, dword [esp + 0x20]
mov edi, eax
mov ecx, 7
lea esi, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00515015
mov esp, ebp
pop ebp
ret 8