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

Disassembly:
push 0xffffffffffffffff
push 0x524da0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, dword [esp + 0x88]
test byte [edi + 0x4f8], 4
je 0x467ece
movzx ecx, byte [edi + 0x50f]
mov esi, dword [edi + 0xa8]
mov eax, dword [esi + 0x94]
and ecx, 0x1f
cdq
mov ebx, 1
shl ebx, cl
idiv ebx
mov ecx, eax
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x8c]
cdq
idiv ecx
cmp eax, dword [esi + 0x90]
mov dword [esp + 0x8c], eax
jle 0x46779a
mov eax, esi
mov eax, dword [eax + 0x90]
mov dword [esp + 0x8c], eax
xor ecx, ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x80], ecx
mov eax, dword [edi + 0x318]
cmp eax, ecx
je 0x4677c9
lea ecx, [esp + 0x44]
push ecx
push eax
call fcn.004d8e70
jmp 0x4678b7
mov edi, esi
cmp dword [edi + 0x90], ecx
mov dword [esp + 0x14], ecx
jle 0x4678b7
mov ebp, dword [esp + 0x88]
mov edi, ecx
push edi
mov ecx, ebp
mov dword [esp + 0x1c], 0
call fcn.00419c50
test al, al
jne 0x467812
lea ebx, [esp + 0x18]
lea esi, [esp + 0x44]
mov dword [esp + 0x18], closesocket
call fcn.00449fd0
jmp 0x46789e
mov edi, dword [esp + 0x88]
mov eax, dword [edi + 0xb8]
mov eax, dword [eax]
add edi, 0xb4
mov esi, edi
mov ebp, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebp
test esi, esi
mov ebx, dword [edi + 4]
je 0x46783e
cmp esi, edi
je 0x467844
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, ebx
je 0x467886
test esi, esi
jne 0x467852
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, dword [esi + 4]
jne 0x46785d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
push edx
call fcn.004ba690
test al, al
je 0x467873
add dword [esp + 0x18], 1
lea esi, [esp + 0x1c]
call fcn.0048b420
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
jmp 0x467833
lea ebx, [esp + 0x18]
lea esi, [esp + 0x44]
call fcn.00449fd0
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x88]
mov eax, dword [ebp + 0xa8]
add edi, 1
cmp edi, dword [eax + 0x90]
mov dword [esp + 0x14], edi
jl 0x4677e4
mov ebx, dword [esp + 0x88]
mov eax, dword [ebx + 0xa8]
mov eax, dword [eax + 0x90]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
xor ebp, ebp
push edx
mov ecx, eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.0046d650
mov eax, dword [ebx + 0xa8]
mov eax, dword [eax + 0x90]
xor esi, esi
cmp eax, ebp
jle 0x4679e6
jmp 0x467900
mov ecx, dword [esp + 0x28]
cmp ecx, ebp
je 0x467915
mov eax, dword [esp + 0x2c]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x46791f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x28]
mov dword [ecx + esi*8 + 4], esi
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 0x94], ebp
jle 0x467963
mov edi, dword [ebx + 0x318]
cmp edi, ebp
je 0x46798b
mov ecx, dword [edi + 0x28]
cmp ecx, ebp
je 0x46794e
mov eax, dword [edi + 0x2c]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x467954
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 0x28]
cmp dword [eax + esi*8 + 4], 0xffffffff
sete al
test al, al
jne 0x46798b
mov ecx, dword [esp + 0x28]
cmp ecx, ebp
je 0x467978
mov eax, dword [esp + 0x2c]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x467982
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x28]
mov dword [ecx + esi*8], closesocket
jmp 0x4679d1
mov ecx, dword [esp + 0x48]
cmp ecx, ebp
je 0x4679a0
mov eax, dword [esp + 0x4c]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x4679aa
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x48]
lea edi, [ecx + esi*4]
mov ecx, dword [esp + 0x28]
cmp ecx, ebp
je 0x4679c2
mov eax, dword [esp + 0x2c]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x4679cc
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x28]
mov edx, dword [edi]
mov dword [ecx + esi*8], edx
mov eax, dword [ebx + 0xa8]
add esi, 1
cmp esi, dword [eax + 0x90]
jl 0x467900
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov byte [esp + 0x80], 2
mov eax, dword [ebx + 0xa8]
mov edx, dword [ebx + 0x2e8]
lea ecx, [esp + 0x34]
push ecx
add eax, 0x140
push eax
add edx, 0x3e8
push edx
call fcn.004990d0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
mov dword [esp + 0x14], eax
jbe 0x467a3b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
mov esi, dword [esp + 0x20]
mov edx, 0x24
lea edi, [edx - 0x23]
mov ebx, edx
mov ebp, eax
jbe 0x467a5d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
mov dword [esp + 0x18], ecx
jbe 0x467a6b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x44]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov dword [eax + 4], ebx
mov dword [eax + 8], esi
lea ecx, [esp + 0x44]
mov dword [eax + 0xc], edi
push ebp
mov eax, ecx
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
lea eax, [esp + 0x3c]
call fcn.004714b0
mov ecx, dword [eax]
mov esi, dword [eax + 4]
add esp, 0x20
test ecx, ecx
je 0x467aaa
lea edx, [esp + 0x34]
cmp ecx, edx
je 0x467ab4
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
call ebx
jmp 0x467aba
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [esp + 0x14]
cmp esi, ebp
je 0x467b28
mov ebx, dword [esp + 0x3c]
mov ecx, ebx
sub ecx, ebp
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
mov byte [esp + 0x18], 0
mov ecx, dword [esp + 0x18]
push ecx
lea edi, [esi + eax*8]
mov eax, dword [esp + 0x8c]
mov byte [esp + 0x18], 0
mov edx, dword [esp + 0x18]
push edx
push eax
push ebx
mov eax, esi
mov ecx, ebp
call fcn.00477170
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x4c]
push ecx
push edx
mov eax, edi
call fcn.00475140
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add esp, 0x18
mov dword [esp + 0x3c], edi
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x3c]
mov edi, eax
jbe 0x467b3a
call ebx
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
cmp eax, ebp
jbe 0x467b44
call ebx
cmp edi, ebp
je 0x467b7e
cmp edi, dword [esp + 0x3c]
jb 0x467b50
call ebx
mov eax, dword [esp + 0x28]
test eax, eax
mov esi, dword [edi]
je 0x467b67
mov ecx, dword [esp + 0x2c]
sub ecx, eax
sar ecx, 3
cmp esi, ecx
jb 0x467b6d
call ebx
mov eax, dword [esp + 0x28]
add dword [eax + esi*8], 0xffffffff
cmp edi, dword [esp + 0x3c]
jb 0x467b79
call ebx
add edi, 0x28
jmp 0x467b44
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
cmp ecx, edx
mov edi, edx
jbe 0x467b96
call ebx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
cmp ecx, edx
mov esi, ecx
jbe 0x467ba6
call ebx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
cmp esi, edi
je 0x467bbc
push edi
push esi
call fcn.00474430
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
add esp, 8
cmp ecx, edx
mov dword [esp + 0x18], edx
jbe 0x467bce
call ebx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
cmp ecx, edx
mov ebp, ecx
jbe 0x467be2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x20]
xor eax, eax
xor esi, esi
cmp ebp, dword [esp + 0x18]
mov dword [esp + 0x60], eax
je 0x467c29
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x60]
sub esp, 0x14
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], esi
mov dword [eax + 8], edi
mov edi, dword [esp + 0x2c]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov ebx, ebp
call fcn.004744c0
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
add esp, 0x14
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x48], eax
mov ebx, eax
jbe 0x467c47
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x48]
cmp edi, eax
jbe 0x467c61
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
cmp edi, ebx
je 0x467c93
sub eax, ebx
sar eax, 2
test eax, eax
lea esi, [eax*4]
lea ebp, [esi + edi]
jle 0x467c8d
push esi
push ebx
push esi
push edi
call dword [sym.imp.MSVCR80.dll_memmove_s]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
add esp, 0x10
mov eax, ebp
mov dword [esp + 0x4c], eax
xor edi, edi
cmp dword [esp + 0x8c], edi
jle 0x467d00
mov ebp, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jmp 0x467caa
mov edx, dword [esp + 0x2c]
test ecx, ecx
je 0x467cb9
mov eax, edx
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x467cc3
call ebp
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
cmp dword [ecx + edi*8], 0x7fffffff
je 0x467cfc
test ecx, ecx
je 0x467cd9
sub edx, ecx
sar edx, 3
cmp edi, edx
jb 0x467cdf
call ebp
mov ecx, dword [esp + 0x28]
lea ebx, [ecx + edi*8 + 4]
lea esi, [esp + 0x44]
call fcn.00449fd0
mov ecx, dword [esp + 0x28]
add edi, 1
cmp edi, dword [esp + 0x8c]
jl 0x467ca6
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
test edx, edx
je 0x467e4e
sub eax, edx
sar eax, 2
je 0x467e4e
cmp eax, dword [esp + 0x8c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
jl 0x467d2f
lea eax, [esp + 0x8c]
mov eax, dword [eax]
push 0
push eax
lea eax, [esp + 0x4c]
call fcn.00449ea0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
cmp eax, ecx
mov ebp, eax
jbe 0x467d59
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
cmp eax, ecx
mov dword [esp + 0x8c], ecx
jbe 0x467d70
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea ebx, [ebx]
cmp ebp, dword [esp + 0x8c]
je 0x467e4a
mov ebx, dword [esp + 0x88]
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x28], esp
sub esp, 8
mov dword [esp + 0x30], esp
add ebx, 0x1c
mov edi, esp
mov esi, 0x454dd0
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], eax
call fcn.004af770
mov eax, dword [esp + 0x38]
movzx ecx, byte [0x55dcad]
movzx edx, byte [0x55dcb0]
push eax
mov eax, dword [esp + 0x34]
push esi
push ecx
push edx
push eax
call fcn.004b0530
add esp, 0x1c
lea edi, [esp + 0x64]
call fcn.00470760
mov byte [esp + 0x80], 3
cmp ebp, dword [esp + 0x4c]
jb 0x467def
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x88]
mov edx, dword [ebp]
mov esi, dword [eax + 0xb0]
lea ecx, [esp + 0x54]
push ecx
push edx
call fcn.00446e70
mov byte [esp + 0x80], 2
mov eax, dword [esp + 0x54]
test eax, eax
je 0x467e36
test al, 1
jne 0x467e36
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x467e36
lea ecx, [esp + 0x5c]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
cmp ebp, dword [esp + 0x4c]
jb 0x467e42
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add ebp, 4
jmp 0x467d70
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x38]
xor edi, edi
cmp esi, edi
je 0x467e98
mov ebx, dword [esp + 0x3c]
cmp esi, ebx
je 0x467e8b
add esi, 0xc
mov dword [esi - 8], edi
mov eax, dword [esi]
cmp eax, edi
je 0x467e75
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
add esi, 0x28
lea eax, [esi - 0xc]
cmp eax, ebx
jne 0x467e63
mov esi, dword [esp + 0x38]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp ecx, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
je 0x467eb1
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x48]
cmp eax, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
je 0x467ece
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 8