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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5294e3
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [ebp + 0xa8]
xor edi, edi
cmp dword [eax + 0x94], edi
jle 0x457490
call fcn.004653d0
test al, al
jne 0x457490
mov al, byte [ebp + 0x4e7]
and al, 7
cmp al, 7
je 0x457490
call fcn.00464b10
push 0x5c
lea esi, [esp + 0x30]
call fcn.0042e810
mov ecx, esi
push ecx
mov ebx, ebp
call fcn.00463370
call fcn.004664f0
mov dword [esp + 0x2c], edi
mov dword [esp + 0x78], edi
mov esi, dword [ebp + 0xac]
lea ebx, [esp + 0x2c]
call fcn.004469a0
or esi, 0xffffffff
mov dword [esp + 0x78], esi
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x456fe1
test al, 1
jne 0x456fe1
and eax, 0xfffffffe
mov eax, dword [eax]
cmp eax, edi
je 0x456fe1
lea edx, [esp + 0x34]
push 2
push edx
mov ecx, edx
push ecx
call eax
add esp, 0xc
cmp dword [ebp + 0x318], edi
jne 0x45702f
push 0x78
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, edi
mov dword [esp + 0x78], 1
je 0x45700b
push eax
call fcn.004d50f0
jmp 0x45700d
xor eax, eax
mov dword [esp + 0x78], esi
mov esi, dword [ebp + 0x318]
cmp esi, edi
mov dword [ebp + 0x318], eax
je 0x45702f
call fcn.004721f0
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
lea esi, [ebp + 0x308]
mov dword [esp + 0x24], edi
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
jbe 0x457047
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
jbe 0x457055
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push edi
push esi
push ebx
push esi
lea edi, [esp + 0x34]
call fcn.004700e0
movzx ecx, byte [ebp + 0x50f]
mov esi, dword [ebp + 0xa8]
mov eax, dword [esi + 0x94]
and ecx, 0x1f
mov edi, 1
shl edi, cl
mov ecx, dword [esi + 0x88]
add esp, 0x10
lea eax, [edi + eax - 1]
cdq
idiv edi
mov dword [esp + 0x24], eax
mov eax, edi
cdq
mov edi, eax
mov eax, dword [esi + 0x94]
mov ebx, edx
cdq
push edx
push eax
mov eax, dword [esi + 0x8c]
push eax
push ecx
call fcn.00515d50
add eax, edi
adc edx, ebx
push ebx
sub eax, 1
push edi
sbb edx, 0
push edx
push eax
call fcn.00515a70
mov esi, dword [esi + 0x90]
mov edx, dword [esp + 0x24]
mov edi, dword [ebp + 0x318]
push esi
push eax
push edx
call fcn.004d51a0
and byte [ebp + 0x510], 0xfd
push ebp
mov ecx, 7
call fcn.00469680
lea edi, [ebp + 0x58]
call fcn.004a8ad0
test byte [ebp + 0x52c], 0x40
je 0x457388
mov ecx, ebp
call fcn.00419d00
test al, al
jne 0x457388
mov edi, closesocket
mov ecx, ebp
mov dword [esp + 0x24], edi
call fcn.00419cb0
test al, al
jne 0x457388
mov eax, dword [ebp + 0xa8]
cmp dword [eax + 0x94], 0
jle 0x457152
mov eax, dword [eax + 0x90]
mov ecx, dword [ebp + 0x318]
sub eax, dword [ecx + 0x5c]
mov edx, dword [ecx + 0x64]
sub eax, edx
je 0x457388
cmp dword [ebp + 0x4e0], edi
je 0x457388
mov esi, ebp
call fcn.00469910
mov ecx, dword [ebp + 0x2e8]
mov eax, dword [ebp + 0x4e0]
add ecx, 0x9c0
cmp eax, 0xffffffff
mov dword [esp + 0x20], ecx
jne 0x457227
or ebx, eax
mov eax, dword [ecx + 4]
mov edi, dword [eax]
mov esi, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
lea esp, [esp]
test esi, esi
je 0x4571a8
cmp esi, ecx
je 0x4571ae
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esp + 0x14]
je 0x457204
test esi, esi
jne 0x4571be
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esi + 4]
jne 0x4571c9
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [edi + 0x20]
mov eax, dword [esi + 0x4e0]
cmp eax, ebx
jle 0x4571d8
mov ebx, eax
cmp eax, 0x7fffffff
jl 0x4571ed
add eax, 1
mov dword [esi + 0x4e0], eax
call fcn.00469910
lea esi, [esp + 0x18]
call fcn.0046dec0
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
jmp 0x4571a0
lea eax, [ebx + 1]
mov dword [esp + 0x20], eax
cmp eax, 0x7fffffff
lea eax, [esp + 0x24]
jg 0x45721a
lea eax, [esp + 0x20]
mov eax, dword [eax]
mov dword [ebp + 0x4e0], eax
jmp 0x457378
cmp eax, edi
jle 0x4572c2
mov eax, dword [ecx + 4]
mov edi, dword [eax]
mov esi, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], esi
test esi, esi
je 0x45724a
cmp esi, ecx
je 0x457254
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
call ebx
jmp 0x45725a
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esp + 0x14]
je 0x4572b3
test esi, esi
jne 0x457266
call ebx
cmp edi, dword [esi + 4]
jne 0x45726d
call ebx
mov esi, dword [edi + 0x20]
cmp esi, ebp
je 0x45729c
mov eax, dword [esi + 0x4e0]
cmp eax, 0x7fffffff
jl 0x45729c
cmp eax, dword [ebp + 0x4e0]
jge 0x45729c
cmp eax, 0xffffffff
je 0x45729c
add eax, 1
mov dword [esi + 0x4e0], eax
call fcn.00469910
lea esi, [esp + 0x24]
call fcn.0046dec0
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
jmp 0x457242
mov dword [ebp + 0x4e0], closesocket
jmp 0x457378
jge 0x457378
mov eax, dword [ecx + 4]
mov edi, dword [eax]
mov esi, ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], esi
test esi, esi
je 0x4572eb
cmp esi, ecx
je 0x4572f5
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
call ebx
jmp 0x4572fb
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esp + 0x14]
je 0x45735e
test esi, esi
jne 0x457307
call ebx
cmp edi, dword [esi + 4]
jne 0x45730e
call ebx
mov esi, dword [edi + 0x20]
mov eax, dword [esi + 0x4e0]
cmp eax, dword [esp + 0x18]
jle 0x457321
mov dword [esp + 0x18], eax
cmp esi, ebp
je 0x457347
cmp eax, 0x7fffffff
jg 0x457347
cmp eax, dword [ebp + 0x4e0]
jle 0x457347
cmp eax, 0xffffffff
je 0x457347
add eax, 0xffffffff
mov dword [esi + 0x4e0], eax
call fcn.00469910
lea esi, [esp + 0x2c]
call fcn.0046dec0
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
jmp 0x4572e3
cmp dword [esp + 0x18], 0x7fffffff
lea eax, [esp + 0x24]
jg 0x457370
lea eax, [esp + 0x18]
mov ecx, dword [eax]
mov dword [ebp + 0x4e0], ecx
mov edx, dword [ebp + 0x2e8]
mov dword [edx + 0xbc8], 2
mov eax, dword [ebp + 0x458]
xor edi, edi
mov dword [ebp + 0x458], edi
mov ecx, dword [ebp + 0x45c]
mov dword [ebp + 0x45c], edi
mov edx, dword [ebp + 0x460]
lea esi, [esp + 0x2c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [ebp + 0x460], edi
mov dword [esp + 0x78], 0xffffffff
call fcn.004051d0
lea esi, [ebp + 0x464]
mov ecx, esi
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x2c], edi
call fcn.00427600
lea ecx, [esp + 0x2c]
call fcn.0044daf0
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x34], esp
sub esp, 8
mov dword [esp + 0x48], edi
mov dword [esp + 0x3c], esp
lea ebx, [ebp + 0x1c]
mov edi, esp
mov dword [esp + 0x3c], eax
call fcn.004af770
mov eax, dword [esp + 0x48]
movzx ecx, byte [0x55dcad]
movzx edx, byte [0x55dcb0]
push eax
mov eax, 0x4574b0
push eax
mov eax, dword [esp + 0x44]
push ecx
push edx
push eax
call fcn.004b0530
add esp, 0x1c
lea edi, [esp + 0x5c]
call fcn.00470760
mov eax, edi
mov dword [esp + 0x78], 4
mov ebx, esi
mov esi, dword [ebp + 0xb0]
push eax
call fcn.00446b90
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x457490
test al, 1
jne 0x457490
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x457490
lea ecx, [esp + 0x54]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret