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

Disassembly:
sub esp, 0x74
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x6c], eax
mov edx, ecx
mov dword [esp + 0x60], 0xffffffff
push ebx
push ebp
push esi
mov esi, dword [edx + 0xc]
xor ebp, ebp
mov ebx, dword [edx]
push edi
mov dword [esp + 0x34], ebx
movzx eax, byte [esi + 0x10]
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], 1
lea ecx, [eax + eax*8]
mov eax, dword [ebx + 4]
lea ecx, [ecx + 1]
mov ebx, dword [eax + ecx*8 + 0x44]
lea edi, [eax + ecx*8]
mov eax, dword [edx + 4]
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], eax
test ebx, ebx
jne 0x468e67
push 0x38
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.004cb9a0
mov ecx, dword [esp + 0x38]
mov eax, 1
mov word [esp + 0x72], ax
add esp, 0xc
lea eax, [esp + 0x70]
mov byte [esp + 0x68], 5
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x74]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 1
test byte [edi + 0x24], 1
jne 0x468e63
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 8]
mov dword [esp + 0x4c], eax
lea ebx, [esp + 0x38]
push 0
push dword [ecx + 0x1c]
call fcn.0040ae20
movzx eax, ax
mov dword [esp + 0x24], eax
cwde
cdq
push edx
push eax
call fcn.0040ae20
movzx eax, ax
add esp, 0x10
cmp ax, 0x21
jle 0x468e99
add eax, 0xffffffdf
movzx ecx, ax
mov dword [esp + 0x18], ecx
jmp 0x468e9d
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x10], ebp
jne 0x468fb2
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
mov eax, dword [eax]
test dword [eax + 0x18], 0x100000
je 0x468fb2
cmp dword [edi + 0x44], ebp
jne 0x468fb2
test byte [edi + 0x24], 7
jne 0x468fb2
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0xc]
mov edi, dword [edx + 0x14]
lea eax, [eax + eax*2]
shl eax, 4
add eax, edi
mov dword [esp + 0x28], eax
cmp edi, eax
jae 0x468faa
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
and ecx, dword [edi + 0x20]
and eax, dword [edi + 0x24]
or ecx, eax
jne 0x468f86
mov edx, dword [esp + 0x30]
push ecx
push ecx
mov ecx, edi
call fcn.004654e0
add esp, 8
test eax, eax
je 0x468f86
mov ecx, dword [esp + 0x18]
mov eax, 1
mov word [esi + 0x28], ax
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x18], 1
mov dword [esi + 0x1c], 0
mov dword [eax], edi
mov eax, dword [esp + 0x1c]
add eax, 0x1c
add eax, ecx
mov word [esi + 0x12], ax
mov eax, 0x2b
mov edx, eax
mov word [esi + 0x16], ax
call fcn.0040adc0
mov word [esi + 0x14], ax
mov edx, esi
mov dword [esi + 0x24], 0x4000
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
or ecx, dword [esp + 0x88]
or eax, dword [esp + 0x8c]
mov dword [esi], ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 4], eax
call fcn.00468520
mov ebp, eax
mov eax, dword [esp + 0x28]
add edi, 0x30
test ebp, ebp
je 0x468ee8
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004c515f
add esp, 0x74
ret
test ebp, ebp
jne 0x469171
test ebx, ebx
je 0x469171
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x468fda
movzx ecx, byte [esi + 0x10]
mov edx, dword [esp + 0x20]
push eax
call fcn.00468cf0
add esp, 4
test eax, eax
je 0x469162
mov ebp, dword [esp + 0x30]
xor eax, eax
mov edi, dword [esp + 0x1c]
mov edx, ebx
mov ecx, dword [esp + 0x14]
mov word [esi + 0x28], ax
mov byte [esi + 0x11], al
mov word [esi + 0x12], ax
mov eax, dword [esp + 0x88]
mov dword [esi], eax
mov eax, dword [esp + 0x8c]
mov dword [esi + 0x18], 0
mov dword [esi + 4], eax
mov word [esi + 0x16], di
mov dword [esi + 0x1c], ebx
push dword [ebp + 0x2c]
call fcn.00468bc0
add esp, 4
mov dword [esp + 0x28], eax
cmp dword [ebx + 0x28], 0
jg 0x469057
mov ecx, dword [esp + 0x24]
xor edx, edx
movzx ecx, cl
test eax, eax
mov dword [esi + 0x24], 0x100
cmovne edx, ecx
mov ecx, edi
mov byte [esi + 0x11], dl
mov edx, dword [esp + 0x18]
call fcn.0040adc0
add ax, 0x10
jmp 0x469123
mov ecx, ebx
call fcn.00468c80
mov edi, eax
not edx
and edx, dword [ebp + 0x3c]
not edi
and edi, dword [ebp + 0x38]
mov eax, 0x240
mov ecx, edi
or ecx, edx
je 0x46907a
mov eax, 0x200
cmp dword [esp + 0x28], 0
mov dword [esi + 0x24], eax
jne 0x4690cf
mov eax, edi
or eax, edx
jne 0x469145
test byte [ebx + 0x34], 4
jne 0x469145
mov ecx, dword [esp + 0x2c]
mov ax, word [ebx + 0x2c]
cmp ax, word [ecx + 0x2a]
jge 0x469145
mov eax, dword [esp + 0x34]
test byte [eax + 0x22], 4
jne 0x469145
cmp dword [0x510f30], 0
je 0x469145
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x3c], 0x40
jne 0x469145
mov eax, dword [esp + 0x24]
xor ecx, ecx
cmp dword [esp + 0x28], ecx
movzx eax, al
cmovne ecx, eax
or edi, edx
mov byte [esi + 0x11], cl
jne 0x469119
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
call fcn.0040adc0
movsx ecx, word [ebx + 0x2c]
lea edi, [eax + 1]
mov eax, ecx
shl eax, 4
sub eax, ecx
mov ecx, dword [esp + 0x2c]
cdq
movsx ecx, word [ecx + 0x2a]
idiv ecx
add di, ax
mov word [esi + 0x14], di
mov edi, dword [esp + 0x1c]
jmp 0x469127
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add eax, edi
mov word [esi + 0x14], ax
mov ecx, dword [esp + 0x20]
mov edx, esi
call fcn.004686a0
mov ecx, dword [esp + 0x14]
mov edx, esi
call fcn.00468520
mov word [esi + 0x16], di
test eax, eax
jne 0x469173
mov ecx, dword [esp + 0x14]
mov edx, ebp
push 0
push ebx
call fcn.00468760
mov ebp, eax
add esp, 8
mov eax, dword [esp + 0x30]
cmp dword [eax + 0x44], 0
jne 0x469171
inc dword [esp + 0x24]
mov ebx, dword [ebx + 0x14]
test ebp, ebp
je 0x468fb2
mov eax, ebp
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c515f
add esp, 0x74
ret