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

Disassembly:
sub esp, 0x8c
cmp byte [esp + 0x98], 0
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x2c], edx
push esi
push edi
mov dword [esp + 0x38], ebp
lea esi, [ebp + 8]
lea ecx, [ebp + 4]
mov dword [esp + 0x50], esi
mov dword [esp + 0x30], ecx
je 0x54cc4e
mov eax, dword [esi]
mov ebx, dword [ecx]
lea edx, [eax + 4]
cmp edx, ebx
ja 0x54d5d3
mov edi, dword [ebp]
mov eax, dword [edi + eax]
mov dword [esi], edx
cmp eax, 0x1cf51ba
jne 0x54d5d3
lea edi, [edx + 4]
cmp edi, ebx
ja 0x54d5d3
mov eax, dword [ebp]
mov eax, dword [edx + eax]
mov dword [esi], edi
mov dword [ecx], eax
jmp 0x54cc56
mov dword [esp + 0x50], esi
mov dword [esp + 0x30], ecx
mov ebx, dword [esi]
mov edx, dword [ecx]
lea eax, [ebx + 0x10]
cmp eax, edx
ja 0x54d5d3
mov edi, dword [ebp]
mov ecx, dword [edi + ebx]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + ebx + 4]
mov dword [esp + 0x20], ecx
mov ecx, dword [edi + ebx + 8]
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + ebx + 0xc]
mov dword [esp + 0x18], ecx
lea ecx, [eax + 1]
mov dword [esi], eax
cmp ecx, edx
ja 0x54d5d3
mov bl, byte [eax + edi]
mov dword [esi], ecx
mov eax, dword [0x5c0a38]
mov dword [esp + 0x54], eax
mov eax, dword [0x5c0a3c]
mov dword [esp + 0x58], eax
mov eax, dword [0x5c0a40]
mov dword [esp + 0x5c], eax
mov eax, dword [0x5c0a44]
mov byte [esp + 0x2f], bl
mov dword [esp + 0x60], eax
test bl, bl
je 0x54ccf1
lea ebx, [ecx + 0x10]
cmp ebx, edx
ja 0x54d5d3
mov eax, dword [ecx + edi]
mov dword [esp + 0x54], eax
mov eax, dword [ecx + edi + 4]
mov dword [esp + 0x58], eax
mov eax, dword [ecx + edi + 8]
mov dword [esp + 0x5c], eax
mov eax, dword [ecx + edi + 0xc]
mov dword [esp + 0x60], eax
mov dword [esi], ebx
mov ebx, dword [esp + 0xa0]
test ebx, ebx
je 0x54cd0a
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x54cd0a
add ecx, 0x10
jmp 0x54cd0f
mov ecx, 0x5c0a38
mov eax, dword [ecx]
mov dword [esp + 0x64], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x6c], eax
mov eax, dword [ecx + 0xc]
push 0x10
mov dword [esp + 0x74], eax
lea eax, [esp + 0x68]
push 0x5c0a38
push eax
call fcn.005606cd
mov edi, dword [esp + 0x28]
add esp, 0xc
test eax, eax
jne 0x54cd62
mov eax, dword [esp + 0x20]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x64], edi
mov dword [esp + 0x70], eax
push 0x40
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x54cd89
push ebx
lea ecx, [esp + 0x68]
push ecx
push 0
push ebp
mov ecx, eax
call fcn.00549db5
jmp 0x54cd8b
xor eax, eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], eax
push ecx
mov ecx, dword [esp + 0x24]
push eax
sub esp, 0x10
mov dword [esp + 0x34], 0
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0xc], ecx
call fcn.0055c596
test eax, eax
js 0x54d5d3
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x1c]
mov dword [eax], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x54ce03
push eax
push 0
mov dword [eax], fcn.0055c2cd
mov dword [eax + 4], 0x5c30e4
mov dword [eax + 8], 0x5c30d4
mov dword [eax + 0x20], 0x5c30d0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esi]
mov ecx, dword [esp + 0x30]
lea eax, [edx + 2]
cmp eax, dword [ecx]
ja 0x54d5d3
mov eax, dword [ebp]
movzx eax, word [edx + eax]
mov dword [esp + 0x34], eax
lea eax, [edx + 2]
mov dword [esi], eax
test ebx, ebx
je 0x54d2b5
cmp byte [esp + 0xa8], 0
je 0x54cf52
test edi, edi
je 0x54cf52
mov eax, dword [edi]
lea ecx, [esp + 0x14]
push ecx
push 0x5c30c0
push edi
mov dword [esp + 0x20], 0
call dword [eax]
mov ebp, dword [esp + 0x14]
push 0x12
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x54ce87
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov byte [ecx + 0x10], 0
jmp 0x54ce89
xor ecx, ecx
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], edi
mov byte [ecx + 0x11], 0
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x54ce9d
mov dword [eax + 4], ecx
mov eax, dword [ebx + 0x30]
mov dword [ecx], eax
inc dword [ebx + 0x38]
cmp dword [ebx + 0x34], 0
mov dword [ebx + 0x30], ecx
jne 0x54ceb1
mov dword [ebx + 0x34], ecx
mov ecx, dword [0x58abfc]
test ecx, ecx
je 0x54ced0
cmp dword [0x58abf8], 0
jne 0x54ced0
mov eax, dword [0x58abf0]
test eax, eax
je 0x54ced0
push ecx
call eax
mov ebp, dword [edi + 0x48]
test ebp, ebp
je 0x54cefe
add dword [ebp + 4], 0xffffffff
jne 0x54cefe
cmp byte [ebp + 8], 0
jne 0x54cefe
mov ecx, ebp
mov byte [ebp + 8], 1
call fcn.00549d7f
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x14c
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x54cf31
push 0x14c
push 0
push ebp
call fcn.0055d95a
add esp, 0xc
mov ecx, ebp
call fcn.00549b11
jmp 0x54cf33
xor eax, eax
mov dword [edi + 0x48], eax
mov dword [eax + 0x18], edi
mov ecx, dword [edi + 0x48]
mov eax, dword [esp + 0x14]
mov dword [ecx + 0x1c], eax
mov ecx, edi
call fcn.00549982
test eax, eax
js 0x54d5d3
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax]
add ecx, 0x5c
add ecx, ebx
cmp byte [esp + 0x2f], 0
mov dword [esp + 0x28], ecx
jne 0x54cf72
mov dword [ecx], edi
jmp 0x54d051
mov ebp, ecx
mov ecx, dword [ecx]
sub ebp, ebx
mov dword [esp + 0x1c], ecx
sub ebp, 0x5c
mov eax, ebp
and ebp, 0x7fffffff
shr eax, 0x1f
mov dword [esp + 0x18], eax
cmp ecx, edi
jne 0x54cfad
test edi, edi
je 0x54d057
test al, al
je 0x54d057
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x54d057
test edi, edi
je 0x54cfb7
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
xor eax, eax
mov dword [esp + 0x24], ecx
cmp dword [ecx + 0xc], eax
jbe 0x54d034
add ecx, 0x20
mov edx, dword [ecx]
lea ecx, [ecx + 4]
inc eax
cmp dword [edx + 4], ebp
je 0x54cfe0
mov edx, dword [esp + 0x24]
cmp eax, dword [edx + 0xc]
jb 0x54cfca
jmp 0x54d034
mov ebp, dword [edx]
add ebp, ebx
push ebp
mov eax, dword [ebp]
call dword [eax + 4]
cmp dword [esp + 0x1c], 0
je 0x54d1be
push 0x10
lea eax, [esp + 0x58]
push 0x5c30e8
push eax
call fcn.005606cd
add esp, 0xc
test eax, eax
je 0x54d1be
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x54]
call fcn.0054ba7f
mov ecx, eax
mov dword [esp + 0x20], ecx
test ecx, ecx
jne 0x54d114
mov eax, dword [ebp]
push ebp
call dword [eax + 8]
test edi, edi
je 0x54d04b
mov eax, dword [edi]
push edi
call dword [eax + 8]
cmp byte [esp + 0x18], 0
je 0x54d04b
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [esp + 0x28]
mov dword [eax], edi
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
movzx eax, ax
add dword [ecx], 4
mov dword [esp + 0x24], 0
test eax, eax
je 0x54d2b1
push 0
push 0
push ecx
push ebx
lea edx, [esp + 0x24]
mov dword [esp + 0x24], 0
mov ecx, ebp
call fcn.0054cbe9
add esp, 0x10
test al, al
je 0x54d5d3
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x54d292
lea edx, [esp + 0x28]
mov dword [esp + 0x28], 0
mov eax, dword [ecx]
push edx
push 0x5c30c0
push ecx
call dword [eax]
test eax, eax
js 0x54d288
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], eax
test eax, eax
je 0x54d288
mov eax, dword [esp + 0x14]
push 0x12
push 8
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x54d254
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov byte [ecx + 0x10], 0
jmp 0x54d256
mov dword [esp + 0x14], 0
lea edx, [esp + 0x14]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x1c]
test eax, eax
jns 0x54d13e
mov eax, dword [ebp]
push ebp
call dword [eax + 8]
mov ecx, dword [esp + 0x20]
push ecx
mov eax, dword [ecx]
jmp 0x54d031
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x44]
mov dword [esp + 0x44], 0
push edx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x2c], 0
mov eax, dword [ecx]
push 1
push ecx
call dword [eax + 0xc]
test eax, eax
jne 0x54d1aa
mov eax, dword [esp + 0x40]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [esp + 0x40], ebp
je 0x54d19c
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x44]
push edx
mov eax, dword [ecx]
push 1
push ecx
call dword [eax + 0xc]
test eax, eax
je 0x54d170
jmp 0x54d1aa
mov ecx, dword [esp + 0x20]
push dword [esp + 0x44]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x20]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
test edi, edi
je 0x54d221
lea edx, [esp + 0x54]
mov ecx, edi
call fcn.0054ba7f
mov ecx, eax
mov dword [esp + 0x20], ecx
test ecx, ecx
jne 0x54d1e3
mov eax, dword [ebp]
push ebp
call dword [eax + 8]
jmp 0x54d038
lea edx, [esp + 0x3c]
mov dword [esp + 0x3c], 0
mov eax, dword [ecx]
push edx
push ebp
push ecx
call dword [eax + 0x14]
test eax, eax
jns 0x54d211
mov eax, dword [ebp]
push ebp
call dword [eax + 8]
mov ecx, dword [esp + 0x20]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x54d038
mov ecx, dword [esp + 0x20]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [ebp]
push ebp
call dword [eax + 8]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x54d236
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x28]
mov dword [eax], edi
test edi, edi
je 0x54d057
cmp byte [esp + 0x18], 0
jne 0x54d057
jmp 0x54d051
xor ecx, ecx
mov eax, dword [esp + 0x3c]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 0xc], eax
mov byte [ecx + 0x11], 0
mov eax, dword [edi + 0x30]
test eax, eax
je 0x54d272
mov dword [eax + 4], ecx
mov eax, dword [edi + 0x30]
mov dword [ecx], eax
inc dword [edi + 0x38]
cmp dword [edi + 0x34], 0
mov dword [edi + 0x30], ecx
jne 0x54d292
mov dword [edi + 0x34], ecx
jmp 0x54d292
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
inc eax
movzx ecx, dx
cmp eax, ecx
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0xa4]
jl 0x54d07c
mov ecx, dword [esp + 0x30]
cmp byte [esp + 0xa8], 0
je 0x54d5c6
mov edx, dword [esi]
lea edi, [edx + 4]
cmp edi, dword [ecx]
ja 0x54d5c6
mov eax, dword [ebp]
mov dword [esp + 0x28], 0
mov eax, dword [edx + eax]
mov dword [esp + 0x40], eax
mov dword [esi], edi
test eax, eax
jle 0x54d5c6
mov eax, dword [0x5c0a44]
mov edi, dword [0x5c0a38]
mov edx, dword [0x5c0a3c]
mov ecx, dword [0x5c0a40]
mov dword [esp + 0x80], eax
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x74], edi
mov dword [esp + 0x84], edi
mov edi, dword [esi]
mov dword [esp + 0x78], edx
add edi, 4
mov dword [esp + 0x88], edx
mov edx, dword [eax]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x8c], ecx
cmp edi, edx
ja 0x54d5d3
mov eax, dword [esi]
mov ecx, dword [ebp]
mov eax, dword [ecx + eax]
mov dword [esp + 0x20], eax
lea eax, [edi + 4]
mov dword [esi], edi
cmp eax, edx
ja 0x54d5d3
mov ebp, dword [ecx + edi]
lea edi, [eax + 4]
mov dword [esp + 0x3c], ebp
mov dword [esi], eax
cmp edi, edx
ja 0x54d5d3
mov eax, dword [ecx + eax]
lea ebp, [edi + 4]
mov dword [esp + 0x34], eax
mov dword [esi], edi
cmp ebp, edx
ja 0x54d5d3
mov eax, dword [ecx + edi]
mov dword [esp + 0x14], eax
lea eax, [ebp + 0x10]
mov dword [esi], ebp
cmp eax, edx
ja 0x54d5d3
lea eax, [ecx + ebp]
push 0x10
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.0055fcbe
mov edx, dword [esi]
add esp, 0xc
mov ecx, dword [esp + 0x30]
add edx, 0x10
mov dword [esi], edx
lea eax, [edx + 0x10]
cmp eax, dword [ecx]
ja 0x54d5d3
mov edi, dword [esp + 0x38]
push 0x10
mov eax, dword [edi]
add eax, edx
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.0055fcbe
add dword [esi], 0x10
lea eax, [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x18], 0
push eax
push 1
push 9
call dword [sym.imp.OLEAUT32.dll_SafeArrayCreateEx]
test eax, eax
js 0x54d5d3
mov eax, dword [esp + 0x18]
mov ecx, 0x400
push 0x3c
push 8
or word [eax + 2], cx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
inc ecx
mov dword [eax + 4], 4
mov eax, dword [esp + 0x20]
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
add ecx, 0x5c
add ecx, ebx
mov dword [eax + 0x14], 0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x54], ecx
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x54d50f
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x80]
mov ebp, dword [esp + 0x84]
mov edx, dword [esp + 0x78]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 8], eax
mov eax, esi
mov dword [esi], 0x5c3088
mov dword [esi + 4], 1
mov esi, dword [esp + 0x14]
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x3c]
mov dword [eax + 0x1c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x10], esi
mov esi, dword [esp + 0x34]
mov dword [eax + 0x14], esi
mov esi, dword [esp + 0x20]
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], edi
mov edi, dword [esp + 0x38]
mov dword [eax + 0x2c], ebp
mov dword [eax + 0x18], esi
mov esi, dword [esp + 0x50]
mov dword [eax + 0x28], ebx
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0xa0]
mov dword [ecx + 0x30], eax
mov eax, dword [esp + 0x94]
mov dword [ecx + 0x34], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 0x38], eax
jmp 0x54d511
xor ecx, ecx
mov eax, dword [esp + 0x4c]
mov dword [eax + 4], ecx
push dword [esp + 0x18]
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroyDescriptor]
test eax, eax
js 0x54d5d3
mov eax, dword [esp + 0x18]
xor ebp, ebp
mov eax, dword [eax + 0xc]
mov dword [esp + 0x48], eax
cmp dword [esp + 0x14], ebp
jle 0x54d5af
mov eax, dword [esi]
mov ecx, dword [esp + 0x30]
lea ebx, [eax + 4]
mov ecx, dword [ecx]
cmp ebx, ecx
ja 0x54d5d3
mov edx, dword [edi]
mov eax, dword [edx + eax]
mov dword [esp + 0x4c], eax
lea eax, [ebx + 4]
mov dword [esi], ebx
cmp eax, ecx
ja 0x54d5d3
mov ebx, dword [edx + ebx]
mov edi, dword [esp + 0xa0]
mov dword [esi], eax
mov eax, dword [esp + 0x4c]
mov edi, dword [eax + edi + 0x5c]
push edi
mov eax, dword [edi]
call dword [eax + 4]
mov eax, dword [esp + 0x20]
or eax, 0x80000000
push eax
mov eax, dword [esp + 0x4c]
push edi
lea eax, [eax + ebx*4]
mov ebx, dword [esp + 0xa8]
push eax
push ebx
lea eax, [esp + 0x84]
push eax
call fcn.0054a071
mov edi, dword [esp + 0x38]
inc ebp
cmp ebp, dword [esp + 0x14]
jl 0x54d53d
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x38]
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x40]
jl 0x54d2ec
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x8c
ret