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

Disassembly:
push 0xffffffffffffffff
push 0x529d23
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xc4]
xor edi, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0xbc], edi
mov eax, dword [ebp + 0x9c8]
push eax
lea esi, [esp + 0x38]
call fcn.0046c110
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov byte [esp + 0xbc], 1
mov eax, dword [ebp + 0x9c8]
push eax
lea esi, [esp + 0x48]
call fcn.0046c110
mov ecx, dword [ebp + 0x16c]
mov esi, dword [ebp + 0x168]
mov eax, dword [ebp + 0x170]
mov edx, dword [ebp + 0x174]
mov ebx, dword [ebp + 0x17c]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0x178]
mov dword [esp + 0x30], esi
cmp esi, 0xffffffff
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], ebx
mov esi, closesocket
jne 0x485867
mov dword [esp + 0x30], esi
cmp dword [esp + 0x20], 0xffffffff
jne 0x485872
mov dword [esp + 0x20], esi
cmp ebx, 0xffffffff
jne 0x48587b
mov dword [esp + 0x18], esi
cmp eax, 0xffffffff
jne 0x485884
mov dword [esp + 0x24], esi
cmp ecx, 0xffffffff
jne 0x48588d
mov dword [esp + 0x2c], esi
cmp edx, 0xffffffff
jne 0x485896
mov dword [esp + 0x28], esi
mov edx, dword [ebp + 0x9c4]
mov ebx, dword [edx]
lea esi, [ebp + 0x9c0]
mov eax, edx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], esi
mov dword [esp + 0x80], eax
cmp esi, edi
je 0x4858c3
lea eax, [ebp + 0x9c0]
cmp esi, eax
je 0x4858cd
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
call edi
jmp 0x4858d3
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esp + 0x80]
je 0x485a21
test esi, esi
jne 0x4858e6
call edi
cmp ebx, dword [esi + 4]
jne 0x4858ed
call edi
mov esi, dword [ebx + 0x20]
movzx eax, byte [esi + 0x4e7]
and eax, 7
mov edi, 1
cmp eax, edi
mov dword [esp + 0x1c], esi
je 0x4859a2
test eax, eax
je 0x4859a2
mov al, byte [esi + 0x52c]
test al, 0x40
je 0x485951
cmp dword [esi + 0x430], 0
jne 0x485951
mov ecx, esi
call fcn.00419d00
test al, al
lea ebx, [esp + 0x1c]
je 0x485943
lea esi, [esp + 0x44]
call fcn.0048a6d0
jmp 0x485a09
lea esi, [esp + 0x34]
call fcn.0048a6d0
jmp 0x485a09
test al, 0x10
je 0x485a09
mov ecx, dword [esi + 0x2e8]
cmp byte [ecx + 0xbb9], 0
jne 0x485a09
test byte [esi + 0x545], 1
jne 0x485a09
sub dword [esp + 0x18], edi
lea eax, [ebp + 0x44]
mov ecx, esi
call fcn.00485510
test al, al
je 0x485a09
mov ecx, esi
call fcn.00419d00
test al, al
je 0x48599c
sub dword [esp + 0x20], edi
jmp 0x485a09
sub dword [esp + 0x30], edi
jmp 0x485a09
mov al, byte [esi + 0x52c]
test al, 0x40
je 0x485a09
test al, 0x10
je 0x4859c8
mov edx, dword [esi + 0x2e8]
cmp byte [edx + 0xbb9], 0
jne 0x4859c8
test byte [esi + 0x545], 1
je 0x485a09
mov al, byte [esi + 0x52c]
test al, 0x10
je 0x4859de
test al, 2
je 0x4859de
test al, 4
je 0x4859de
test al, 8
jne 0x485a09
or al, 0x1e
mov byte [esi + 0x52c], al
mov eax, dword [esi + 0x2e8]
cmp byte [eax + 0xbb9], 0
jne 0x4859fc
and byte [esi + 0x545], 0xfe
or byte [esi + 0x4f8], 0x80
push esi
call fcn.00465d90
lea esi, [esp + 0x54]
call fcn.0046dec0
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
xor edi, edi
jmp 0x4858b5
xor ecx, ecx
mov edx, 0x47f050
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x40]
xor esi, esi
mov eax, 0x47f050
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x60], esi
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x3c]
mov ecx, 8
lea esi, [esp + 0x5c]
lea edi, [esp + 0x8c]
mov dword [esp + 0x68], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
mov ebx, eax
jbe 0x485a8d
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 + 0x1c], ecx
jbe 0x485a9b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x1c]
sub esp, 0x28
mov edx, ebx
sub edx, eax
mov edi, esp
sar edx, 2
push edx
push ebx
mov ecx, 0xa
lea esi, [esp + 0xb4]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0048ded0
mov esi, fcn.00464e10
xor edi, edi
lea eax, [ebp + 0x44]
mov dword [esp + 0x90], esi
mov esi, dword [esp + 0x74]
mov ecx, fcn.00464e10
mov dword [esp + 0x98], eax
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0xa0], ecx
xor edx, edx
mov dword [esp + 0x94], edi
mov dword [esp + 0x9c], esi
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x80]
mov ecx, 8
lea esi, [esp + 0x90]
lea edi, [esp + 0xc0]
mov dword [esp + 0xa4], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x7c]
add esp, 0x34
cmp ecx, eax
mov ebx, eax
jbe 0x485b49
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jbe 0x485b57
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x1c]
sub esp, 0x28
mov edi, esp
mov ecx, 0xa
lea esi, [esp + 0xac]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
sub ecx, eax
sar ecx, 2
push ecx
push ebx
push eax
call fcn.0048e010
add esp, 0x34
cmp byte [ebp + 0x180], 0
lea edi, [esp + 0x2c]
lea ebx, [esp + 0x24]
je 0x485bc1
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x50]
push edx
push ebp
call fcn.004855e0
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x40]
push eax
jmp 0x485bef
mov ecx, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x40]
push ecx
push ebp
call fcn.004855e0
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x50]
push edx
push ebp
lea edi, [esp + 0x40]
lea ebx, [esp + 0x38]
call fcn.004855e0
mov eax, dword [esp + 0x48]
xor esi, esi
cmp eax, esi
je 0x485c10
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x38]
cmp eax, esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
je 0x485c2d
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret 4