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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x6c
mov eax, dword [eax]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x2c], eax
test byte [eax + 0x21], 0x40
je 0x54e484
cmp byte [edx + 0x2b], 0
jne 0x54e484
movzx eax, byte [esi + 0x9b]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x2c]
call fcn.004e913f
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
shl eax, 4
add eax, dword [edi + 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x30]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x54e300
cmp dword [ebp + 0xc], 0
mov edx, dword [ebx + 8]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
je 0x54e0d5
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], edx
mov dword [ebp - 0x34], edx
mov eax, dword [eax]
mov dword [esp], eax
call fcn.004a220e
mov edx, dword [ebp - 0x34]
test eax, eax
je 0x54e0d5
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x34], eax
xor eax, eax
cmp eax, dword [ebp - 0x34]
jge 0x54e2f8
mov ecx, dword [ebx + eax*8 + 0x24]
mov edi, dword [ebp + 0xc]
cmp dword [edi + ecx*4], 0
jns 0x54e0d5
mov edi, dword [ebp - 0x30]
movsx edi, word [edi + 0x20]
cmp edi, ecx
jne 0x54e0d2
cmp dword [ebp + 0x10], 0
jne 0x54e0d5
inc eax
jmp 0x54e0ab
cmp byte [esi + 0x9b], 0
je 0x54e0eb
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x2c]
call fcn.004e4ef0
jmp 0x54e0fc
mov eax, dword [ebp - 0x4c]
mov ecx, edx
xor edx, edx
mov dword [esp], eax
mov eax, esi
call fcn.0054dd12
mov edi, eax
test eax, eax
jne 0x54e10d
cmp dword [ebp - 0x48], 0
jne 0x54e12e
jmp 0x54e484
lea eax, [ebp - 0x20]
mov ecx, ebx
mov edx, edi
mov dword [esp + 4], eax
lea eax, [ebp - 0x24]
mov dword [esp], eax
mov eax, esi
call fcn.0050345d
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x54e102
jmp 0x54e1a3
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x57], 0
jne 0x54e484
test edi, edi
jne 0x54e2f8
mov eax, esi
call fcn.0050086d
mov dword [ebp - 0x34], eax
mov eax, dword [eax + 0x6c]
add eax, dword [ebx + 0x14]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebx + 0x14], edi
jle 0x54e186
movsx edx, word [ebx + edi*8 + 0x24]
mov eax, dword [ebx]
inc edi
call fcn.004e8cba
mov ecx, dword [ebp - 0x40]
mov edx, 0x32
cwde
lea ecx, [ecx + eax + 1]
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
call fcn.005007da
jmp 0x54e157
movzx ecx, byte [ebx + 0x18]
mov dword [esp], 0xffffffff
mov edx, 0x9e
mov eax, dword [ebp - 0x34]
call fcn.005007da
jmp 0x54e2f8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x54e1b9
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
cmp dword [ebx + 0x14], eax
jle 0x54e22d
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
movsx eax, word [eax + 0x20]
cmp dword [ecx + edx*4], eax
jne 0x54e1e1
mov dword [ecx + edx*4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x16c], 0
je 0x54e228
mov eax, dword [ebp - 0x24]
mov edx, dword [edi + 4]
test eax, eax
je 0x54e203
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x38]
movsx eax, word [eax + ecx*2]
jmp 0x54e207
movsx eax, word [edi + 0x20]
shl eax, 4
mov ecx, dword [edx + eax]
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
mov edx, dword [edi]
mov eax, esi
call fcn.005174e1
cmp eax, 2
sete al
movzx eax, al
mov dword [ebp - 0x44], eax
inc dword [ebp - 0x38]
jmp 0x54e1c0
mov eax, dword [edi]
mov ecx, dword [edi + 0x14]
mov dword [esp], 0
mov edx, dword [ebp - 0x3c]
mov dword [esp + 4], eax
mov eax, esi
call fcn.004ff7e4
inc dword [esi + 0x28]
cmp dword [ebp - 0x40], 0
je 0x54e283
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x3c]
mov dword [esp + 0x10], 0xffffffff
mov ecx, edi
mov dword [esp + 4], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, esi
call fcn.0050cc27
cmp dword [ebp + 8], 0
je 0x54e2e6
mov eax, dword [esi + 0x78]
test eax, eax
cmove eax, esi
mov eax, dword [eax + 0x80]
test eax, eax
je 0x54e2b3
mov eax, dword [eax]
cmp eax, dword [ebx + 0x1c]
jne 0x54e2a8
cmp byte [ebx + 0x19], 8
je 0x54e2e6
cmp eax, dword [ebx + 0x20]
jne 0x54e2b3
cmp byte [ebx + 0x1a], 8
je 0x54e2e6
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x3c]
mov dword [esp + 0x10], 1
mov ecx, edi
mov dword [esp + 4], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, esi
call fcn.0050cc27
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.004e244d
mov ebx, dword [ebx + 4]
jmp 0x54e069
mov eax, dword [ebp - 0x30]
call fcn.004d3027
mov ebx, eax
test ebx, ebx
je 0x54e484
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
je 0x54e341
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, ebx
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
call fcn.004d303a
test eax, eax
je 0x54e47c
cmp byte [ebx + 0x18], 0
jne 0x54e360
mov eax, dword [ebp - 0x2c]
test byte [eax + 0x22], 8
jne 0x54e360
cmp dword [esi + 0x78], 0
jne 0x54e360
cmp byte [esi + 0x14], 0
je 0x54e47c
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
mov ecx, ebx
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
mov eax, esi
call fcn.0050345d
test eax, eax
je 0x54e399
cmp dword [ebp - 0x48], 0
je 0x54e484
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x57], 0
jne 0x54e484
jmp 0x54e47c
mov dword [esp], 0
xor ecx, ecx
xor edx, edx
mov eax, esi
call fcn.00503110
mov edi, eax
test eax, eax
je 0x54e46a
mov eax, dword [ebx]
mov edx, dword [eax]
mov dword [edi + 0x18], eax
mov dword [edi + 0x10], edx
inc dword [eax + 0x18]
mov eax, dword [esi + 0x28]
cmp dword [ebp + 8], 0
lea edx, [eax + 1]
mov dword [esi + 0x28], edx
mov dword [edi + 0x34], eax
je 0x54e400
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
mov dword [esp + 0x10], 0xffffffff
mov edx, edi
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, esi
call fcn.0053970f
cmp dword [ebp - 0x40], 0
je 0x54e459
xor eax, eax
cmp dword [ebp + 0xc], 0
mov ecx, dword [ebp - 0x30]
mov edx, edi
setne al
mov al, byte [ebx + eax + 0x19]
mov dword [esp + 0x10], 1
mov dword [esp + 4], ebx
mov byte [ebp - 0x34], al
mov eax, dword [ebp - 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, esi
call fcn.0053970f
cmp byte [ebx + 0x18], 0
jne 0x54e459
mov al, byte [ebp - 0x34]
and eax, 0xfffffffd
cmp al, 8
je 0x54e459
mov eax, esi
call fcn.004d2b86
mov dword [edi + 0x10], 0
mov eax, dword [ebp - 0x2c]
mov edx, edi
call fcn.004ed488
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.004e244d
mov ebx, dword [ebx + 0xc]
jmp 0x54e30a
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret