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

Disassembly:
sub esp, 0x80
and dword [esp + 0x30], 0
and dword [esp + 0x28], 0
push ebx
push ebp
mov ebp, dword [esp + 0x90]
push esi
push edi
mov edi, dword [esp + 0x94]
mov eax, dword [edi]
mov ebx, dword [edi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x38]
dec eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], eax
dec eax
mov dword [edi + 0x38], eax
mov ecx, dword [ebp + 0x30]
mov dword [esp + 0x34], eax
mov al, byte [ebp]
mov byte [esp + 0x13], al
mov esi, dword [ecx]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x4c], esi
cmp al, 0x87
je 0x54c6db
mov eax, dword [esp + 0x14]
xor edx, edx
inc edx
mov dword [esp + 0x2c], edx
cmp byte [eax + 0x57], 0
jne 0x54c6db
imul eax, esi, 0x14
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x1c]
cmp edx, dword [eax]
jg 0x54c6db
xor eax, eax
test esi, esi
jle 0x54c664
lea ebx, [ecx + 0x18]
mov edi, eax
movzx eax, word [ebx]
cmp eax, edx
je 0x54c651
inc edi
add ebx, 0x14
cmp edi, esi
jl 0x54c642
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x94]
mov eax, dword [esp + 0x30]
cmp eax, esi
jne 0x54c6c8
push 0
push 0x9b
push dword [esp + 0x1c]
call fcn.0056226d
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x54c730
mov eax, dword [esp + 0x2c]
or dword [ecx + 4], 0x800
push ecx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x2c]
push eax
push edi
call fcn.00565385
mov edx, dword [esp + 0x38]
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x28], ecx
mov dword [ebp + 0x30], ecx
test ecx, ecx
je 0x54c6c8
mov eax, dword [esp + 0x3c]
inc esi
mov dword [esp + 0x4c], esi
mov word [eax + ecx + 0x18], dx
add eax, 0x14
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
inc edx
mov dword [esp + 0x2c], edx
cmp byte [eax + 0x57], 0
je 0x54c62c
lea eax, [esi*4 + 4]
push 0
push eax
push dword [esp + 0x1c]
call fcn.00560346
add esp, 0xc
mov dword [esp + 0x44], eax
test eax, eax
je 0x54c738
xor ecx, ecx
mov dword [eax], esi
inc ecx
cmp esi, ecx
jl 0x54c71e
mov edx, dword [esp + 0x28]
mov ebx, eax
add edx, 0x18
movzx eax, word [edx]
lea edx, [edx + 0x14]
dec eax
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, esi
jle 0x54c70b
mov ebx, dword [esp + 0x24]
push 1
push ebp
push edi
call fcn.0054ccda
add esp, 0xc
mov dword [esp + 0x48], eax
jmp 0x54c73d
push 7
pop eax
jmp 0x54cccf
and dword [esp + 0x48], 0
mov al, byte [esp + 0x13]
cmp al, 0x87
jne 0x54c752
and dword [esp + 0x3c], 0
xor edx, edx
inc edx
jmp 0x54c7d7
mov eax, dword [ebp + 0x1c]
mov esi, dword [eax]
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x30], esi
lea ecx, [eax + 1]
inc eax
push ecx
push 0
add eax, esi
mov dword [esp + 0x44], ecx
push 0x47
push ebx
mov dword [edi + 0x2c], eax
call fcn.0057b76b
push 1
push esi
push dword [esp + 0x2c]
call fcn.0056bfb6
add esp, 0x1c
mov dword [esp + 0x38], eax
test eax, eax
je 0x54c7cc
xor esi, esi
cmp dword [esp + 0x30], esi
jle 0x54c7cc
mov ebx, dword [esp + 0x30]
add eax, 0x14
mov dword [esp + 0x2c], eax
push esi
push ebp
push edi
call fcn.0054c571
mov ecx, dword [esp + 0x38]
add esp, 0xc
mov dword [ecx], eax
add ecx, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x2c], ecx
mov eax, dword [eax + 0x10]
mov byte [esi + eax], 0
inc esi
cmp esi, ebx
jl 0x54c7a0
mov ebx, dword [esp + 0x24]
mov al, byte [esp + 0x13]
xor edx, edx
inc edx
cmp al, 0x86
jne 0x54c815
mov ecx, dword [esp + 0x14]
test dword [ecx + 0x50], 0x200000
jne 0x54c815
cmp dword [ebp + 0x34], 0
mov ecx, ebp
je 0x54c815
cmp byte [ecx], al
jne 0x54c7fa
mov ecx, dword [ecx + 0x34]
inc edx
cmp dword [ecx + 0x34], 0
jne 0x54c7ec
cmp edx, 3
jle 0x54c815
lea eax, [edx - 3]
mov ecx, ebp
shr eax, 1
inc eax
mov ecx, dword [ecx + 0x34]
sub eax, 1
jne 0x54c807
mov dword [esp + 0x50], ecx
jmp 0x54c81b
mov ecx, ebp
mov dword [esp + 0x50], ebp
mov esi, dword [ecx + 0x34]
xor eax, eax
push eax
push dword [esp + 0x2c]
mov dword [ecx + 0x34], eax
mov dword [esi + 0x38], eax
push dword [edi]
mov dword [esp + 0x2c], esi
call fcn.0056565a
push str.ORDER
mov dword [esi + 0x30], eax
push dword [ebp + 0x30]
push ebp
push edi
call fcn.0057425b
push str.ORDER
push dword [esi + 0x30]
push esi
push edi
call fcn.0057425b
push dword [esp + 0x44]
push ebp
push edi
call fcn.0053be4e
xor eax, eax
add esp, 0x38
cmp dword [ebp + 8], eax
je 0x54c8ae
cmp byte [esp + 0x13], 0x87
jne 0x54c8ae
mov esi, dword [edi + 0x2c]
inc esi
mov dword [esp + 0x24], esi
lea eax, [esi + 1]
mov dword [esp + 0x30], eax
mov dword [edi + 0x2c], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x54c88f
inc eax
jmp 0x54c892
mov eax, dword [ebp + 8]
push esi
push eax
push 0x50
push ebx
call fcn.0057b76b
push dword [esp + 0x40]
push esi
push 0x50
push ebx
call fcn.0057b76b
add esp, 0x20
jmp 0x54c8b6
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], eax
cmp dword [ebp + 0x3c], 0
je 0x54c8ca
push dword [ebp + 0x3c]
push dword [esp + 0x18]
call fcn.0056485a
pop ecx
pop ecx
xor edx, edx
mov byte [esp + 0x74], 0xd
mov dword [ebp + 0x3c], edx
inc dword [edi + 0x2c]
mov esi, dword [edi + 0x2c]
mov dword [esp + 0x28], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], edx
lea eax, [esi + 1]
mov dword [esp + 0x88], edx
lea ecx, [eax + 1]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ecx
inc ecx
mov dword [esp + 0x5c], eax
mov dword [edi + 0x2c], ecx
movzx eax, byte [ebp]
push eax
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], edx
mov byte [esp + 0x5c], 0xd
mov dword [esp + 0x64], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
call fcn.00577153
push eax
push str.MERGE___s_
push 1
push edi
call fcn.00582490
mov eax, dword [ebx + 0x6c]
inc eax
push eax
push 0
push esi
push 0xb
push ebx
call fcn.0057b786
mov ecx, dword [esp + 0x4c]
mov esi, eax
mov eax, dword [esp + 0x48]
push str.LEFT
push 1
push edi
mov dword [eax + 8], ecx
call fcn.00582490
lea eax, [esp + 0xa8]
push eax
push dword [esp + 0x58]
push edi
call fcn.005752c1
add esp, 0x40
push dword [esp + 0x28]
push ebx
call fcn.0057c02c
push esi
push ebx
call fcn.0058273c
mov ecx, dword [ebx + 0x6c]
mov dword [eax + 8], ecx
mov eax, dword [ebx + 0x6c]
inc eax
push eax
push 0
push dword [esp + 0x44]
push 0xb
push ebx
call fcn.0057b786
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
push str.RIGHT
push 1
push dword [esp + 0xc0]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x60]
mov dword [ebp + 8], eax
call fcn.00582490
lea eax, [esp + 0x88]
push eax
push ebp
push dword [esp + 0xcc]
call fcn.005752c1
push dword [esp + 0x68]
mov dword [ebp + 8], esi
push ebx
mov dword [ebp + 0xc], edi
call fcn.0057c02c
mov edi, dword [esp + 0x7c]
lea eax, [esp + 0xb8]
mov esi, dword [esp + 0xd8]
add esp, 0x44
push dword [esp + 0x18]
push edi
push dword [esp + 0x44]
push dword [esp + 0x28]
push dword [esp + 0xac]
push eax
push ebp
push esi
call fcn.00543941
mov dword [esp + 0x58], eax
add esp, 0x20
mov al, byte [esp + 0x13]
cmp al, 0x87
je 0x54ca3b
cmp al, 0x86
jne 0x54ca64
push dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push edi
push dword [esp + 0x44]
inc eax
push eax
push dword [esp + 0xac]
lea eax, [esp + 0x6c]
push eax
push ebp
push esi
call fcn.00543941
add esp, 0x20
mov dword [esp + 0x40], eax
push edi
call fcn.0056c165
mov al, byte [esp + 0x17]
pop ecx
cmp al, 0x88
je 0x54cb40
cmp al, 0x89
je 0x54cb40
push dword [esp + 0x40]
mov eax, dword [esp + 0x20]
inc eax
push eax
push 0xa
push ebx
call fcn.0057b76b
push dword [esp + 0x28]
mov edi, eax
push dword [esp + 0x40]
mov dword [esp + 0x48], edi
push 0xc
push ebx
call fcn.0057b76b
push edi
push ebx
mov dword [esp + 0x4c], eax
call fcn.00582757
mov edi, dword [esp + 0x48]
movzx ecx, word [edi + 2]
push ecx
movzx ecx, word [ebp + 2]
push ecx
call fcn.0056caa5
add esp, 0x30
mov word [ebp + 2], ax
push dword [esp + 0x38]
push dword [esp + 0x20]
push 0xa
push ebx
call fcn.0057b76b
push dword [esp + 0x28]
mov ebp, eax
push dword [esp + 0x3c]
mov dword [esp + 0x54], ebp
push 0xc
push ebx
call fcn.0057b76b
push ebp
push ebx
call fcn.00582757
add esp, 0x28
push dword [esp + 0x38]
push dword [esp + 0x20]
push 0xa
push ebx
call fcn.0057b76b
push dword [esp + 0x40]
mov ebp, eax
push dword [esp + 0x3c]
push 0xc
push ebx
call fcn.0057b76b
push dword [esp + 0x54]
push ebx
call fcn.00582757
mov al, byte [esp + 0x3b]
add esp, 0x28
cmp al, 0x87
jne 0x54cb76
mov eax, dword [ebx + 0x6c]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x38], eax
jmp 0x54cbbf
mov edx, dword [esp + 0x18]
mov ecx, edx
mov edi, dword [esp + 0x20]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], edx
cmp al, 0x89
jne 0x54cacc
movzx eax, word [edi + 2]
mov dword [esp + 0x3c], ecx
cmp word [ebp + 2], ax
jle 0x54cb6c
mov word [ebp + 2], ax
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], ecx
jmp 0x54cafc
cmp al, 0x89
jne 0x54cb88
mov eax, dword [ebx + 0x6c]
mov dword [esp + 0x30], ebp
inc ebp
mov dword [esp + 0x38], eax
jmp 0x54cbd4
push dword [esp + 0x30]
push dword [esp + 0x2c]
push 0xc
push ebx
call fcn.0057b76b
push dword [esp + 0x44]
mov dword [esp + 0x44], eax
push ebx
call fcn.00582757
mov ecx, dword [ebx + 0x6c]
add esp, 0x18
cmp byte [esp + 0x13], 0x86
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], eax
jne 0x54cbd4
push dword [esp + 0x40]
mov eax, dword [esp + 0x20]
inc eax
push eax
push 0xa
push ebx
call fcn.0057b76b
add esp, 0x10
push dword [esp + 0x3c]
push dword [esp + 0x30]
push 0xc
push ebx
call fcn.0057b76b
push dword [esp + 0x44]
push ebx
call fcn.00582757
push dword [esp + 0x6c]
push ebx
call fcn.0058273c
push dword [esp + 0x44]
mov ecx, dword [ebx + 0x6c]
push dword [esp + 0x4c]
mov dword [eax + 8], ecx
push 0xc
push ebx
call fcn.0057b76b
push dword [esp + 0x6c]
push dword [esp + 0x60]
push 0xc
push ebx
call fcn.0057b76b
add esp, 0x40
push dword [esp + 0x34]
push ebx
call fcn.00584970
push 0xfffffffffffffff2
push dword [esp + 0x50]
xor eax, eax
push eax
push eax
push eax
push 0x59
push ebx
call fcn.0057b7e0
push 0xfffffffffffffff8
push dword [esp + 0x70]
push dword [esp + 0x78]
push dword [esp + 0x94]
push dword [esp + 0xb4]
push 0x5a
push ebx
call fcn.0057b7e0
add esp, 0x40
push 1
push ebx
call fcn.0057bb2b
push dword [esp + 0x40]
push dword [esp + 0x3c]
push ebp
push 0xe
push ebx
call fcn.0057b786
push dword [esp + 0x34]
push ebx
call fcn.00584970
mov ebx, dword [esp + 0x74]
add esp, 0x24
cmp dword [ebx + 0x34], 0
je 0x54cca2
push dword [ebx + 0x34]
push fcn.00576de5
push esi
call fcn.0056f66a
add esp, 0xc
mov dword [ebx + 0x34], edi
cmp dword [edi + 0x30], 0
mov dword [edi + 0x38], ebx
je 0x54ccbc
push dword [edi + 0x30]
push dword [esp + 0x18]
call fcn.005408da
pop ecx
pop ecx
and dword [edi + 0x30], 0
push esi
call fcn.005824e6
xor eax, eax
cmp dword [esi + 0x24], eax
pop ecx
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret