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

Disassembly:
push ebp
mov ebp, ecx
push edi
push esi
push ebx
sub esp, 0x5c
movsx ecx, word [0x5cca2a]
mov ebx, dword [ebp + 0xc]
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x3c], ebx
mov edi, dword [esp + 0x78]
sub eax, ecx
movsx ecx, word [ebx]
lea ecx, [eax + ecx - 1]
test ecx, ecx
js 0x549288
cmp eax, 0x23f
jg 0x549288
movsx esi, word [0x5cca28]
sub edx, esi
movsx esi, word [ebx + 2]
lea esi, [edx + esi - 1]
test esi, esi
js 0x549288
cmp edx, 0x21f
jg 0x549288
lea ebx, [edx + 0x38]
mov dword [esp + 0x40], ebx
movzx ebx, byte [ebp + 1]
and ebx, 2
mov byte [esp + 0x47], bl
cmp ecx, 0x23f
jg 0x549298
mov ebx, eax
or ebx, edx
js 0x549298
cmp esi, 0x21f
jg 0x549298
cmp byte [esp + 0x47], 0
je 0x549380
test edi, edi
je 0x5493b0
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 8], eax
mov eax, dword [0x5b9d6c]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0xc], edi
mov eax, dword [eax + 0x10]
mov dword [esp + 4], eax
mov eax, dword [0x5b9d70]
mov dword [esp], eax
call fcn.00564560
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov ebp, 0x21f
cmp esi, ebp
cmovg esi, ebp
sub esi, edx
mov dword [esp + 0x48], esi
mov esi, 0x23f
cmp ecx, esi
cmovg ecx, esi
sub ecx, eax
mov dword [esp + 0x4c], ecx
xor ecx, ecx
test edx, edx
cmovns ecx, edx
sub ecx, edx
xor edx, edx
test eax, eax
cmovns edx, eax
sub edx, eax
cmp byte [esp + 0x47], 0
mov ebp, edx
mov edx, dword [0x5b9d6c]
mov esi, dword [edx + 0x10]
mov edx, dword [0x5b9d70]
je 0x549330
test edi, edi
je 0x549400
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 4], esi
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x40]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
mov dword [esp], edx
call fcn.00563c70
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
test edi, edi
je 0x549440
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 4], esi
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x40]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
mov dword [esp], edx
call fcn.00563740
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
test edi, edi
je 0x5493d8
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x3c]
mov ecx, 0x5b9d6c
mov dword [esp], eax
mov dword [esp + 8], edi
mov edi, dword [esp + 0x40]
mov dword [esp + 4], edi
call fcn.005463a0
sub esp, 0x10
jmp 0x549288
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x70], eax
mov ecx, 0x5b9d6c
mov dword [esp + 0x78], edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x74], edi
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00546300
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x70], eax
mov ecx, 0x5b9d6c
mov dword [esp + 0x78], edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x74], edi
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00546260
mov edi, dword [esp + 0x48]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 4], esi
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x40]
mov dword [esp], edx
mov dword [esp + 0xc], edi
call fcn.00563800
jmp 0x549288
mov edi, dword [esp + 0x48]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 4], esi
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x40]
mov dword [esp], edx
mov dword [esp + 0xc], edi
call fcn.005636a0
jmp 0x549288