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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x120
mov esi, dword [edx + 0x3c]
mov edi, dword [esp + 0x13c]
mov dword [esp + 0x20], ecx
mov dword [esp + 4], edx
mov eax, dword [esi + 0x18]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], eax
sub esp, 4
lea edx, [esp + 0x28]
mov ecx, edi
push 0x80000000
call fcn.0044c4e0
add esp, 8
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [edi]
cmp eax, 0x80000016
setl cl
cmp eax, 0x80000001
setne al
xor ebp, ebp
test cl, al
jne 0x46774b
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x46774b
mov eax, dword [edi + 0x1c]
lea ecx, [ecx + ecx*8]
cmp dword [eax + ecx*4 - 0x24], 0x8000000a
jne 0x46774b
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 1
lea eax, [eax + ecx*4 - 0x24]
mov dword [esp + 0x2c], 0
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lea eax, [esp + 0x24]
push eax
call fcn.0043e470
add esp, 4
mov ebp, dword [esp + 0x2c]
cmp dword [esp + 0x24], 0
je 0x46774b
push dword [esp + 0x28]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edi, ebx
sub edi, ebp
cmp ebx, edi
cmovb edi, ebx
push dword [esp + 8]
mov eax, dword [esp + 0x10]
call dword [eax + 0xc]
add esp, 4
mov esi, dword [edx + 0x18]
mov ebp, eax
mov ebx, edx
push dword [esp + 0x138]
push dword [esp + 0x138]
push eax
call esi
add esp, 0xc
push edi
push dword [esp + 0x1c]
push ebp
call esi
add esp, 0xc
lea eax, [esp + 0x98]
push ebp
push eax
call dword [ebx + 0x14]
add esp, 8
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 4]
mov esi, dword [ebp + 0xc]
mov eax, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ebp + 8]
sub esp, 0x14
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov dword [esp], edx
mov dword [esp + 4], 0
call dword [esi + 0x10]
add esp, 0x14
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x1c]
mov esi, edx
push dword [ebp + 0x18]
call dword [eax + 0xc]
add esp, 4
push eax
lea edi, [esp + 0x28]
push edi
call dword [edx + 0x14]
add esp, 8
mov ebx, dword [esp + 0x64]
cmp ebx, 0x41
jae 0x4679ad
mov eax, dword [esi + 0x10]
mov edi, dword [esp + 4]
mov dword [esp + 0xc], eax
push edi
mov dword [esp + 0xc], esi
call dword [esi + 0x14]
add esp, 4
rol ax, 8
lea esi, [esp + 0xdc]
mov byte [esp + 2], 0x10
mov byte [esp + 3], bl
mov word [esp + 0x12], ax
lea eax, [esp + 0x12]
mov dword [esp + 0x68], eax
lea eax, [esp + 2]
mov dword [esp + 0x6c], 2
mov dword [esp + 0x70], eax
lea eax, [esp + 3]
mov dword [esp + 0x74], 1
mov dword [esp + 0x78], 0x5bb098
mov dword [esp + 0x7c], 6
mov dword [esp + 0x80], 0x5baf62
mov dword [esp + 0x84], 0xa
mov dword [esp + 0x88], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x8c], 1
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ebx
lea eax, [esp + 0x68]
push 6
push eax
push edi
push esi
call dword [esp + 0x1c]
add esp, 0x10
mov edx, dword [ebp + 8]
lea eax, [esp + 0x98]
lea ecx, [esp + 0x24]
push eax
push esi
push dword [ebp + 0xc]
call fcn.00475d50
add esp, 0xc
mov ecx, esi
call fcn.00438e90
mov edx, dword [esp + 0x13c]
mov esi, ebp
mov eax, dword [edx]
cmp eax, 0x80000016
setl cl
cmp eax, 0x80000001
setne al
test cl, al
jne 0x46796c
mov edi, dword [esp + 0x64]
cmp edi, 0x41
jae 0x4679ad
mov eax, dword [edx + 0x20]
test eax, eax
je 0x46796c
mov ebx, dword [edx + 0x1c]
lea ebp, [eax + eax*8]
cmp dword [ebx + ebp*4 - 0x24], 0x8000000a
jne 0x46796c
test edi, edi
je 0x467927
movzx eax, byte [0x6019e5]
xor ecx, ecx
mov edx, edi
call fcn.00499510
mov ecx, eax
test eax, eax
jne 0x46792c
jmp 0x4679ad
mov ecx, 1
lea esi, [ebx + ebp*4 - 0x24]
push edi
lea eax, [esp + 0x28]
push eax
mov ebp, ecx
push ecx
call fcn.004ef180
add esp, 0xc
cmp dword [esi + 0x18], 0
je 0x4679ad
mov ebx, dword [esi + 0x14]
cmp dword [ebx], 0
je 0x467960
push dword [ebx + 4]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [esp + 0x14]
mov dword [ebx], edi
mov dword [ebx + 4], ebp
mov dword [ebx + 8], edi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 4]
mov dword [eax], ecx
mov ecx, dword [esp + 8]
mov dword [eax + 4], ecx
lea ecx, [esp + 0x24]
mov dword [eax + 8], esi
call fcn.00438e90
cmp dword [esp + 0x1c], 0
je 0x4679a2
push dword [esp + 0x18]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
add esp, 0x120
pop esi
pop edi
pop ebx
pop ebp
ret
ud2