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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x18]
push ebx
sub esp, 0x9c
lea ebx, [ebp - 0x6c]
mov dword [ebp - 0x54], 0x527d48
mov edi, dword [ebp + 8]
mov dword [ebp - 0x50], 0x5f2b70
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x48], 0x54eeeb
mov dword [ebp - 0x44], esp
mov dword [esp], ebx
call fcn.005341e8
mov dword [ebp - 0x68], 0xffffffff
mov edx, dword [ebp - 0x74]
add edx, 0x6c
mov dword [ebp - 0x28], edx
call fcn.00518c78
mov ecx, dword [ebp - 0x74]
mov edx, eax
mov dword [ecx + 0x6c], eax
lea eax, [eax + 0xffc]
test eax, eax
mov dword [ecx + 0x70], eax
je 0x54ecd5
xor eax, eax
mov dword [edx + 0xffc], eax
mov dword [ebp - 0x80], 1
mov ebx, dword [ebp - 0x74]
mov eax, dword [ebx + 0x30]
mov dword [ebx + 0x78], 0x400
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
mov dword [ebx + 0x38], 0
or eax, 0x8000
test eax, 0x40000
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x30], eax
mov dword [ebp - 0x7c], ecx
jne 0x54ed26
mov esi, dword [ebx + 0x24]
xor edx, edx
mov eax, dword [esi]
test eax, eax
je 0x54ed23
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x80], edx
mov byte [ebp - 0x30], 0
mov edx, dword [ebp - 0x74]
mov ebx, dword [ebp - 0x74]
mov esi, dword [ebp - 0x7c]
mov ecx, dword [edx + 0x10]
mov edi, dword [ebx + 0x1c]
mov edx, dword [esi]
mov ebx, dword [ebp - 0x80]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x84], edi
add ebx, 2
mov dword [ebp - 0x8c], ebx
mov eax, ecx
sub eax, edx
sar eax, 2
imul edi, eax, 0xaaaaaaab
cmp ebx, edi
mov dword [ebp - 0x88], edi
jae 0x54ee8b
mov dword [esp + 8], ecx
mov edi, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x7c]
lea eax, [edi + edi*2]
lea esi, [edx + eax*4 + 0x18]
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.005b8b64
mov edx, dword [ebp - 0x7c]
lea ecx, [ebp - 0x38]
mov eax, dword [edx + 4]
mov esi, dword [edx]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005e84b0
mov edx, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x84]
mov ebx, dword [edx + 8]
mov eax, dword [ecx]
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x90], ebx
mov dword [eax + 0xc], edi
mov esi, dword [edx + 0xc]
test byte [edx + 0x32], 2
mov dword [ebx + 0xc], esi
jne 0x54ef38
mov edi, dword [ebp - 0x74]
xor edx, edx
mov eax, dword [edi + 0x24]
mov eax, dword [eax]
test eax, eax
je 0x54ede7
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x74]
mov esi, dword [ecx + 0x30]
mov dword [esp], edx
mov dword [ebp - 0x68], 2
mov dword [esp + 4], esi
call fcn.00519218
mov ebx, dword [ebp - 0x74]
mov dword [esp], ebx
call fcn.0054b358
test al, al
je 0x54efa8
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx]
mov ebx, dword [edx + 4]
mov ecx, dword [edx]
sub ebx, ecx
sar ebx, 2
imul esi, ebx, 0xaaaaaaab
cmp esi, 2
jle 0x54ef64
lea edx, [ecx + 0x18]
mov edi, dword [ebp - 0x74]
mov esi, dword [ebp - 0x28]
mov eax, dword [edi + 0x10]
cmp dword [edx + 4], eax
mov edi, dword [esi]
mov dword [ebp - 0x68], 0xffffffff
sete dl
movzx ecx, dl
mov dword [esp], edi
movzx ebx, cl
mov dword [ebp - 0x98], ebx
call fcn.00518d88
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x98]
mov dword [eax], 0
mov dword [ebp - 0x70], edx
lea ecx, [ebp - 0x6c]
mov dword [esp], ecx
call fcn.005342c8
mov eax, dword [ebp - 0x70]
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], ecx
lea ebx, [ebp - 0x38]
mov dword [esp + 8], ebx
mov dword [esp], edx
call fcn.005e84b0
mov ecx, dword [ebp - 0x88]
cmp dword [ebp - 0x8c], ecx
je 0x54eda9
mov ecx, dword [ebp - 0x88]
lea edi, [ebp - 0x38]
mov ebx, dword [ebp - 0x7c]
sub dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x7c]
mov esi, dword [ebx + 4]
mov dword [esp + 0xc], edi
mov eax, dword [ebp - 0x80]
mov dword [esp], edx
mov dword [esp + 4], esi
add eax, 2
mov dword [esp + 8], eax
mov dword [ebp - 0x68], 2
call fcn.005b8894
jmp 0x54eda9
mov esi, dword [edx]
mov dword [esp + 4], ebx
mov dword [ebp - 0x68], 2
mov dword [ebp - 0x94], esi
mov dword [esp], esi
call fcn.005b8bf4
mov edx, dword [ebx + 0xc]
mov ebx, dword [ebp - 0x94]
mov dword [ebx + 0xc], edx
jmp 0x54edd6
add edx, 0x10
jmp 0x54ee34
mov edi, dword [ebp - 0x28]
mov eax, dword [edi]
mov dword [ebp - 0x68], 0xffffffff
mov dword [esp], eax
call fcn.00518d88
mov dword [ebp - 0x70], 0
mov edx, dword [ebp - 0x28]
mov dword [edx], 0
jmp 0x54ee72