Function at 0x54e548
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, 0xbc
lea ebx, [ebp - 0x6c]
mov dword [ebp - 0x54], 0x527d48
mov edi, dword [ebp + 8]
mov dword [ebp - 0x50], 0x5f2b60
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x48], 0x54eb18
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 0x54e5b5
xor eax, eax
mov dword [edx + 0xffc], eax
mov ebx, dword [ebp - 0x74]
mov ecx, dword [ebx + 0x30]
mov dword [ebx + 0x78], 0x400
mov dword [ebx + 0x38], 0
test ch, 2
mov dword [ebx + 0x3c], 0
jne 0x54e848
mov dword [ebp - 0x80], 1
mov edx, dword [ebx + 0xc]
and ecx, 0x40000
mov eax, dword [ebx + 0x24]
mov esi, dword [ebx + 8]
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x1c], edx
mov edx, dword [eax]
mov dword [ebp - 0x7c], esi
mov edi, dword [edx + 0x1c]
mov dword [ebx + 0x2c], edi
je 0x54e9a8
mov byte [ebp - 0x30], 0
mov ecx, dword [ebp - 0x74]
mov ebx, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x74]
mov edx, dword [ecx + 0x10]
mov ecx, dword [ebx + 4]
mov esi, dword [edi + 0xc]
mov dword [ebp - 0x38], edx
mov eax, ecx
mov dword [ebp - 0x34], edx
mov edx, dword [ebx]
mov dword [ebp - 0x84], esi
mov esi, dword [ebp - 0x80]
sub eax, edx
sar eax, 2
imul edi, eax, 0xaaaaaaab
add esi, 2
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x88], edi
mov ebx, dword [ebp - 0x88]
cmp esi, ebx
jae 0x54e9b9
mov dword [esp + 8], ecx
mov ebx, dword [ebp - 0x80]
mov edi, dword [ebp - 0x7c]
lea esi, [ebx + ebx*2]
lea eax, [edx + esi*4 + 0x18]
mov dword [esp], edi
lea ebx, [ebp - 0x38]
mov dword [esp + 4], eax
call fcn.005b8b64
mov esi, dword [ebp - 0x7c]
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.005e84b0
mov edi, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x74]
mov ebx, dword [edi]
mov esi, dword [ecx + 8]
mov dword [ebx + 0xc], edx
mov eax, dword [ecx + 0xc]
or dword [ecx + 0x30], 0x200
mov dword [esi + 0xc], eax
mov ebx, dword [ebp - 0x74]
test byte [ebx + 0x32], 2
je 0x54e793
mov ecx, dword [ebx + 0x24]
mov edi, dword [ebx]
xor ebx, ebx
mov dword [ebp - 0xa8], ebx
mov eax, dword [ecx]
mov dword [ebp - 0xa4], edi
test eax, eax
je 0x54e6df
mov esi, dword [eax + 0x18]
mov dword [ebp - 0xa8], esi
mov byte [ebp - 0x30], 0
mov ecx, dword [ebp - 0x74]
mov ebx, dword [ebp - 0xa4]
mov edi, dword [ebp - 0x74]
mov edx, dword [ecx + 0x10]
mov ecx, dword [ebx + 4]
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x38], edx
mov esi, ecx
mov dword [ebp - 0x34], edx
mov edx, dword [ebx]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xa8]
sub esi, edx
sar esi, 2
imul edi, esi, 0xaaaaaaab
add eax, 2
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], edi
mov ebx, dword [ebp - 0xb0]
cmp eax, ebx
jae 0x54ea88
mov dword [esp + 8], ecx
mov ebx, dword [ebp - 0xa8]
mov edi, dword [ebp - 0xa4]
lea eax, [ebx + ebx*2]
lea esi, [edx + eax*4 + 0x18]
mov dword [esp], edi
lea ebx, [ebp - 0x38]
mov dword [esp + 4], esi
call fcn.005b8b64
mov edx, dword [ebp - 0xa4]
mov eax, dword [edx + 4]
mov esi, dword [edx]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005e84b0
mov edi, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xac]
mov eax, dword [ebp - 0x74]
mov ebx, dword [edi]
mov edx, dword [eax]
mov dword [ebx + 0xc], ecx
mov esi, dword [eax + 0xc]
mov dword [edx + 0xc], esi
mov edx, dword [ebp - 0x74]
mov esi, dword [edx + 0x24]
xor edx, edx
mov eax, dword [esi]
test eax, eax
je 0x54e7a4
mov edx, dword [eax + 8]
mov ebx, dword [ebp - 0x74]
mov eax, dword [ebx + 0x30]
mov dword [esp], edx
mov dword [ebp - 0x68], 2
mov dword [esp + 4], eax
call fcn.00519218
mov ebx, dword [ebp - 0x74]
mov eax, 4
test byte [ebx + 0x31], 0x10
je 0x54eaf8
mov edx, dword [eax*8 + 0x60d538]
mov ecx, dword [eax*8 + 0x60d53c]
test dl, 1
mov ebx, edx
je 0x54e7ef
mov ebx, dword [ebp - 0x74]
mov esi, dword [ebx + ecx]
add esi, edx
mov ebx, dword [esi - 1]
mov dword [ebp - 0x68], 2
mov edx, dword [ebp - 0x74]
add edx, ecx
mov dword [esp], edx
call ebx
movzx ebx, al
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xb8], ebx
mov esi, dword [eax]
mov dword [ebp - 0x68], 0xffffffff
mov dword [esp], esi
call fcn.00518d88
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xb8]
mov dword [edi], 0
mov dword [ebp - 0x70], ecx
lea ebx, [ebp - 0x6c]
mov dword [esp], ebx
call fcn.005342c8
mov eax, dword [ebp - 0x70]
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov ecx, dword [edx]
sub eax, ecx
sar eax, 2
imul esi, eax, 0xaaaaaaab
cmp esi, 2
jg 0x54e99a
lea eax, [edx + 0x10]
mov edx, dword [ebp - 0x74]
mov ebx, dword [eax + 4]
test byte [edx + 0x31], 8
mov dword [edx + 0x14], ebx
mov dword [edx + 0x1c], ebx
jne 0x54e8b8
mov edx, dword [edx]
xor ecx, ecx
mov esi, dword [edx + 4]
mov edx, dword [edx]
sub esi, edx
sar esi, 2
imul edi, esi, 0xaaaaaaab
cmp edi, 2
jg 0x54eb08
test ecx, ecx
jne 0x54e8b8
mov ecx, dword [ebp - 0x74]
mov eax, dword [ecx + 0x14]
cmp eax, dword [ecx + 0x10]
je 0x54eb98
mov ebx, dword [ebp - 0x74]
inc eax
mov dword [ebx + 0x14], eax
lea esi, [esi]
mov ebx, dword [ebp - 0x74]
mov eax, 1
mov edi, dword [ebp - 0x74]
mov dword [ebp - 0x94], eax
test byte [ebx + 0x32], 4
mov ecx, dword [edi + 8]
mov dword [ebp - 0x90], ecx
jne 0x54e8ec
mov esi, dword [ebx + 0x24]
xor edx, edx
mov eax, dword [esi]
test eax, eax
je 0x54e8e6
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x94], edx
mov byte [ebp - 0x30], 0
mov edx, dword [ebp - 0x74]
mov ebx, dword [ebp - 0x90]
mov edi, dword [ebp - 0x74]
mov ecx, dword [edx + 0x10]
mov edx, dword [ebx]
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x94]
mov esi, ecx
sub esi, edx
sar esi, 2
add eax, 2
mov dword [ebp - 0xa0], eax
imul edi, esi, 0xaaaaaaab
mov dword [ebp - 0x9c], edi
mov ebx, dword [ebp - 0x9c]
cmp eax, ebx
jae 0x54ea19
mov dword [esp + 8], ecx
mov ebx, dword [ebp - 0x94]
mov edi, dword [ebp - 0x90]
lea eax, [ebx + ebx*2]
lea esi, [edx + eax*4 + 0x18]
mov dword [esp], edi
lea ebx, [ebp - 0x38]
mov dword [esp + 4], esi
call fcn.005b8b64
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 4]
mov esi, dword [edx]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005e84b0
mov eax, dword [ebp - 0x90]
mov edx, dword [ebp - 0x98]
mov esi, dword [eax]
mov dword [esi + 0xc], edx
jmp 0x54e6b0
lea eax, [ecx + 0x18]
jmp 0x54e869
xor eax, eax
test edx, edx
je 0x54e9b1
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x80], eax
jmp 0x54e606
mov dword [esp], edx
lea edi, [ebp - 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
call fcn.005e84b0
mov edx, dword [ebp - 0x88]
cmp dword [ebp - 0x8c], edx
je 0x54e68f
mov edx, dword [ebp - 0x88]
lea ebx, [ebp - 0x38]
mov edi, dword [ebp - 0x7c]
sub dword [ebp - 0x80], edx
mov ecx, dword [ebp - 0x7c]
mov esi, dword [edi + 4]
mov dword [esp + 0xc], ebx
mov eax, dword [ebp - 0x80]
mov dword [esp], ecx
mov dword [esp + 4], esi
add eax, 2
mov dword [esp + 8], eax
mov dword [ebp - 0x68], 2
call fcn.005b8894
jmp 0x54e68f
mov dword [esp + 4], ecx
lea edi, [ebp - 0x38]
mov dword [esp + 8], edi
mov dword [esp], edx
call fcn.005e84b0
mov ecx, dword [ebp - 0x9c]
cmp dword [ebp - 0xa0], ecx
je 0x54e984
mov ecx, dword [ebp - 0x9c]
lea ebx, [ebp - 0x38]
mov edi, dword [ebp - 0x90]
sub dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0x90]
mov esi, dword [edi + 4]
mov dword [esp + 0xc], ebx
mov eax, dword [ebp - 0x94]
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 0x54e984
mov dword [esp + 4], ecx
lea edi, [ebp - 0x38]
mov dword [esp + 8], edi
mov dword [esp], edx
call fcn.005e84b0
mov ecx, dword [ebp - 0xb0]
cmp dword [ebp - 0xb4], ecx
je 0x54e777
mov ecx, dword [ebp - 0xb0]
lea ebx, [ebp - 0x38]
mov edi, dword [ebp - 0xa4]
sub dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0xa4]
mov esi, dword [edi + 4]
mov dword [esp + 0xc], ebx
mov eax, dword [ebp - 0xa8]
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 0x54e777
mov edi, dword [ebx + 0x24]
mov ecx, dword [edi]
mov eax, dword [ecx + 0x20]
jmp 0x54e7cf
mov ecx, dword [edx + 0x1c]
mov ebx, dword [edx + 0x18]
sub ecx, ebx
jmp 0x54e898
mov edx, dword [ebp - 0x28]
mov esi, dword [edx]
mov dword [ebp - 0x68], 0xffffffff
mov dword [esp], esi
call fcn.00518d88
mov dword [ebp - 0x70], 0
mov edi, dword [ebp - 0x28]
mov dword [edi], 0
jmp 0x54e82f