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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48c4c0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4e4394]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x4e4394]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x1c]
push 1
push 0xffffffffffffffff
push eax
mov dword [esp + 0x48], esi
call dword [0x4a412c]
cmp eax, 0xc0
je 0x468848
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], edi
mov word [esp + 0x50], cx
mov dword [esp + 0x78], edi
mov dword [esp + 0x14], edi
push esi
mov byte [esp + 0x7c], 1
call dword [0x4a415c]
cmp dword [esi + 0x3c], edi
jbe 0x4686f8
mov eax, dword [esi + 0x38]
mov ebx, dword [eax]
mov eax, dword [esi + 0x20]
add esi, 0x20
cmp eax, edi
jne 0x46874f
call fcn.00476736
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x46867c
call fcn.00476736
push 0xffffffffffffffff
lea eax, [ebx + 0x10]
push edi
lea ecx, [esp + 0x54]
call fcn.0040bae0
mov eax, dword [esi + 0x18]
mov ebx, dword [eax]
mov eax, dword [esi]
cmp eax, edi
jne 0x468756
call fcn.00476736
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x4686ab
call fcn.00476736
mov eax, dword [esi + 0x18]
mov dl, byte [ebx + 0x2c]
mov ebx, dword [eax]
mov eax, dword [esi]
mov byte [esp + 0x38], dl
cmp eax, edi
jne 0x46875d
call fcn.00476736
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x4686d2
call fcn.00476736
lea ecx, [ebx + 0x30]
lea ebx, [esp + 0x14]
call fcn.00468e80
mov eax, dword [esi + 0x18]
mov eax, dword [eax]
mov ecx, dword [esi]
push eax
push ecx
lea eax, [esp + 0x4c]
push eax
push esi
call fcn.00468b80
mov esi, dword [esp + 0x3c]
xor edi, edi
push esi
call dword [0x4a4208]
cmp dword [esp + 0x60], edi
je 0x4687e6
sub esp, 0x20
mov eax, esp
mov dword [eax], edi
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x60], esp
cmp ecx, edi
je 0x46877c
mov dword [eax], ecx
test cl, 1
je 0x468764
mov ecx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x40]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x10], ecx
mov edx, dword [esp + 0x48]
mov dword [eax + 0x14], edx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0x18], ecx
mov edx, dword [esp + 0x50]
mov dword [eax + 0x1c], edx
jmp 0x46877c
mov eax, dword [eax]
jmp 0x468672
mov eax, dword [eax]
jmp 0x4686a1
mov eax, dword [eax]
jmp 0x4686c8
mov ecx, dword [esp + 0x34]
add eax, 8
push edi
push eax
and ecx, 0xfffffffe
mov eax, dword [ecx]
lea edx, [esp + 0x44]
push edx
call eax
add esp, 0xc
mov eax, dword [esp + 0x70]
mov ebx, 8
cmp dword [esp + 0x84], ebx
jae 0x468792
lea eax, [esp + 0x70]
mov ecx, dword [esp + 0x58]
push ecx
push eax
call fcn.00467b40
mov byte [esp + 0x78], 0
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x4687ca
test al, 1
jne 0x4687c6
and eax, 0xfffffffe
mov eax, dword [eax]
cmp eax, edi
je 0x4687c6
lea edx, [esp + 0x1c]
push 2
push edx
mov ecx, edx
push ecx
call eax
add esp, 0xc
mov dword [esp + 0x14], edi
cmp dword [esp + 0x64], ebx
jb 0x468626
mov edx, dword [esp + 0x50]
push edx
call fcn.00475571
add esp, 4
jmp 0x468626
mov byte [esp + 0x78], 0
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x468813
test al, 1
jne 0x46880f
and eax, 0xfffffffe
mov eax, dword [eax]
cmp eax, edi
je 0x46880f
lea ecx, [esp + 0x1c]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov dword [esp + 0x14], edi
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x64], 8
jb 0x46882f
mov eax, dword [esp + 0x50]
push eax
call fcn.00475571
add esp, 4
mov ecx, dword [esi + 0x1c]
push 1
push 0xffffffffffffffff
push ecx
call dword [0x4a412c]
cmp eax, 0xc0
jne 0x468626
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.0047557c
mov esp, ebp
pop ebp
ret