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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x68c5c8
push eax
mov dword fs:[0], esp
sub esp, 0x2c
xor eax, eax
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov ax, word [esi + 0x72]
mov ecx, dword [esi + 0x12]
cmp eax, ecx
jl 0x5484d3
cmp eax, dword [esi + 0x1a]
jg 0x5484d3
mov ecx, dword [esi + 0x1e]
xor eax, eax
mov ax, word [esi + 0x74]
cmp eax, ecx
jg 0x5484d3
cmp eax, dword [esi + 0x16]
jge 0x5484fa
mov eax, dword [esi]
mov ecx, eax
and ecx, 0x3c000000
je 0x5484fa
cmp ecx, 0x10000000
je 0x5484fa
and eax, 0xd13fffff
mov dword [esi + 4], ebx
or eax, 0x11000000
mov byte [esp + 0x4c], bl
mov dword [esi], eax
cmp byte [esp + 0x4c], bl
je 0x5488d2
lea ebp, [esi + 0x76]
mov dl, byte [esp + 0x4c]
mov ax, word [esi + 0x72]
dec dl
cmp ax, word [ebp]
mov byte [esp + 0x4c], dl
jne 0x548529
mov cx, word [esi + 0x74]
cmp cx, word [ebp + 2]
je 0x548865
test byte [esi + 0x4ba], 0xf
je 0x548545
mov edx, dword [ebp]
mov ecx, esi
push edx
call fcn.005483d9
test eax, eax
jne 0x5487f7
mov ecx, dword [esi + 0xa]
xor edx, edx
mov dx, word [esi + 0x78]
mov eax, dword [ecx]
push edx
xor edx, edx
mov dx, word [ebp]
push edx
call dword [eax + 0x6c]
mov eax, dword [eax + 0x17b]
test al, 0x80
je 0x54862b
mov ecx, dword [esi + 0xe]
push 8
call fcn.005067c6
cmp eax, 3
jne 0x5485d9
mov edx, dword [esi + 0xe]
mov ecx, dword [esi + 0xa]
push 8
mov dx, word [edx + 4]
mov eax, dword [ecx]
push edx
xor edx, edx
mov dx, word [esi + 0x78]
push edx
xor edx, edx
mov dx, word [ebp]
push edx
call dword [eax + 0x22c]
test eax, eax
je 0x5487e8
xor eax, eax
push ebx
mov ax, word [esi + 0x78]
xor ecx, ecx
mov cx, word [ebp]
push ebx
push 8
push eax
push ecx
mov ecx, dword [esi + 0xe]
call fcn.0051139d
test eax, eax
je 0x5487e8
mov ecx, esi
call fcn.0054c9d0
test eax, eax
je 0x5488b3
jmp 0x5487e8
mov ecx, dword [esi + 0xe]
push 0x11
call fcn.005067c6
cmp eax, 3
jne 0x5488b3
mov eax, dword [esi + 0xe]
mov ecx, dword [esi + 0xa]
push 0x11
mov ax, word [eax + 4]
mov edx, dword [ecx]
push eax
xor eax, eax
mov ax, word [esi + 0x78]
push eax
xor eax, eax
mov ax, word [ebp]
push eax
call dword [edx + 0x22c]
test eax, eax
je 0x5487e8
xor ecx, ecx
push ebx
mov cx, word [esi + 0x78]
xor edx, edx
mov dx, word [ebp]
push ebx
push 0x11
push ecx
push edx
jmp 0x548680
test ah, 1
je 0x5486a4
mov ecx, dword [esi + 0xe]
push 0x11
call fcn.005067c6
cmp eax, 3
jne 0x5488b3
mov edx, dword [esi + 0xe]
mov ecx, dword [esi + 0xa]
push 0x11
mov dx, word [edx + 4]
mov eax, dword [ecx]
push edx
xor edx, edx
mov dx, word [esi + 0x78]
push edx
xor edx, edx
mov dx, word [ebp]
push edx
call dword [eax + 0x22c]
test eax, eax
je 0x5487e8
xor eax, eax
push ebx
mov ax, word [esi + 0x78]
xor ecx, ecx
mov cx, word [ebp]
push ebx
push 0x11
push eax
push ecx
mov ecx, dword [esi + 0xe]
call fcn.0051139d
test eax, eax
je 0x5487e8
mov ecx, esi
call fcn.0054c9d0
test eax, eax
je 0x548865
jmp 0x5487e8
test al, 8
je 0x54875a
mov eax, dword [esi + 0xe]
xor edi, edi
mov di, word [esi + 0x78]
xor edx, edx
mov dx, word [ebp]
mov ecx, dword [eax + 0x1105]
shl edi, 0x10
push ebp
or edi, edx
call fcn.005526ac
movzx ax, al
cmp ax, 1
je 0x5487e8
cmp ax, 2
je 0x5487e8
mov eax, dword [esi + 0xe]
xor edx, edx
mov ecx, dword [eax + 0x1105]
mov dx, word [ecx + 0x4650]
mov ecx, 0x1f4
sub ecx, edx
cmp ecx, 0x1c2
jae 0x548886
mov ax, word [eax + 4]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0x28
mov word [esp + 0x38], ax
mov ecx, dword [esi + 0xa]
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x48], ebx
call fcn.00558314
neg eax
sbb eax, eax
mov dword [esp + 0x44], 0xffffffff
inc eax
cmp al, bl
jne 0x548886
mov word [esi + 0x4f7], 0xf0
jmp 0x5487e8
xor eax, eax
xor ecx, ecx
mov ax, word [esi + 0x72]
mov cx, word [esi + 0x74]
shl eax, 0xc
add eax, 0x800
xor edx, edx
mov dx, word [ebp]
mov dword [esp + 0x1c], eax
xor eax, eax
push ebx
mov ax, word [esi + 0x78]
mov dword [esp + 0x28], ebx
shl ecx, 0xc
add ecx, 0x800
mov dword [esp + 0x1c], ebx
shl edx, 0xc
shl eax, 0xc
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0xe]
add edx, 0x800
add eax, 0x800
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dx, word [ecx + 4]
push ebx
push ebx
push 1
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
mov ecx, dword [esi + 0xa]
add ecx, 0x9da
call fcn.004a0e84
test eax, eax
jne 0x54888c
mov ecx, esi
call fcn.0054c9d0
test eax, eax
je 0x5488b3
cmp byte [esp + 0x4c], bl
je 0x5488d2
jmp 0x548507
mov ecx, dword [esi + 0x4ba]
xor edx, edx
lea eax, [ecx - 1]
xor eax, ecx
and eax, 0xf
xor eax, ecx
mov dword [esi + 0x4ba], eax
and eax, 0xf
mov ecx, eax
shl ecx, 6
add ecx, eax
lea eax, [esi + ecx + 0x9f]
cmp word [eax], bx
je 0x548830
inc edx
add eax, 8
cmp edx, 8
jl 0x548820
jmp 0x54885e
shl edx, 3
lea eax, [esi + ecx]
mov ecx, dword [esi + 0x72]
mov edi, esi
mov dword [eax + edx + 0xa3], ecx
mov eax, dword [esi + 0x4ba]
and eax, 0xf
mov ecx, eax
shl ecx, 6
add edi, ecx
mov ecx, dword [ebp]
add eax, edi
mov dword [eax + edx + 0x9f], ecx
and dword [esi + 0x4ba], 0xfffffff0
mov eax, dword [esi]
mov edx, dword [esi]
shr eax, 0x1a
and eax, 0xf
and edx, 0xd03fffff
and eax, 0xf
mov dword [esi + 4], ebx
or al, 0x40
shl eax, 0x16
or edx, eax
mov dword [esi], edx
jmp 0x5488d2
mov byte [esp + 0x4c], bl
jmp 0x5488d2
mov eax, dword [esi]
mov edx, dword [esi]
shr eax, 0x1a
and eax, 0xf
and edx, 0xd03fffff
and eax, 0xf
mov dword [esi + 4], ebx
or al, 0x40
shl eax, 0x16
or edx, eax
mov eax, dword [esi + 0x72]
mov dword [esi], edx
mov dword [ebp], eax
jmp 0x5488d2
mov eax, dword [esi]
mov ecx, dword [esi]
shr eax, 0x1a
and eax, 0xf
and ecx, 0xd03fffff
and eax, 0xf
mov dword [esi + 4], ebx
or al, 0x40
shl eax, 0x16
or ecx, eax
mov dword [esi], ecx
mov ecx, dword [esp + 0x3c]
mov al, byte [esp + 0x4c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret 4