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

Disassembly:
sub esp, 0x19c
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x1b0]
push edi
mov edi, dword [esp + 0x1bc]
xor ebp, ebp
movsx edx, word [ecx]
movsx eax, word [ecx + 2]
cmp edi, 0xffff
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
mov byte [esp + 0x17], 0
jne 0x54d66b
mov dword [esp + 0x1bc], 0xffffffff
shl eax, 9
add eax, edx
js 0x54d686
cmp eax, 0x40000
jge 0x54d686
mov edx, dword [0x81a938]
mov eax, dword [edx + eax*4]
cmp eax, ebp
jne 0x54d692
mov eax, dword [ecx]
mov dword [0xa57614], eax
mov eax, 0xa575f0
movsx edx, byte [eax + 0x11b]
mov ebx, dword [esp + 0x1c4]
mov dword [esp + 0x34], edx
test bl, bl
je 0x54d6e6
movsx eax, word [ecx + 2]
movsx edx, word [ecx]
shl eax, 9
add eax, edx
js 0x54d6ca
cmp eax, 0x40000
jge 0x54d6ca
mov edx, dword [0x81a938]
mov eax, dword [edx + eax*4]
cmp eax, ebp
jne 0x54d6d6
mov eax, dword [ecx]
mov dword [0xa57614], eax
mov eax, 0xa575f0
mov ecx, dword [eax + 0x140]
test ch, 1
je 0x54d6e6
add dword [esp + 0x34], 4
mov ecx, dword [esi + 0xf4]
mov edx, dword [esi + 0xf0]
lea eax, [ecx + edx]
cmp eax, 0x20
jle 0x54d6ff
mov eax, 0x20
cmp eax, ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], ebp
jle 0x54e00e
mov dword [esp + 0x38], ebp
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
cmp edi, eax
jg 0x54da8f
lea ebp, [esp + ebp*4 + 0x8c]
mov al, byte [esp + 0x1e4]
test al, al
jne 0x54d8c4
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
lea ecx, [eax + edi]
mov eax, dword [esp + 0x24]
sub eax, edx
mov word [esp + 0x48], cx
mov word [esp + 0x4a], ax
mov edx, dword [esp + 0x48]
movsx eax, ax
movsx ecx, cx
shl eax, 9
add eax, ecx
mov dword [esp + 0x10], edx
js 0x54d781
cmp eax, 0x40000
jge 0x54d781
mov ecx, dword [0x81a938]
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x54d781
mov esi, eax
jmp 0x54d78c
mov dword [0xa57614], edx
mov esi, 0xa575f0
mov ecx, dword [esp + 0x2c]
push 1
push esi
call fcn.005573e0
test al, al
je 0x54d8c4
mov edx, dword [esp + 0x1d0]
mov eax, dword [esp + 0x1c0]
mov ecx, dword [esp + 0x1bc]
push edx
mov edx, dword [esp + 0x1bc]
push ebx
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x1dc]
push ecx
mov ecx, dword [esp + 0x1dc]
push edx
push eax
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
call fcn.0054e030
test al, al
je 0x54d8c4
mov al, byte [esp + 0x1d4]
test al, al
je 0x54d822
mov eax, dword [esi + 0x140]
movsx edx, byte [esi + 0x11b]
shr eax, 8
and eax, 1
shl eax, 2
mov ecx, eax
mov eax, dword [esp + 0x34]
sub eax, ecx
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jge 0x54d8c4
mov al, byte [esp + 0x1d8]
test al, al
je 0x54d83c
mov ecx, esi
call fcn.0047be00
test al, al
je 0x54d8c4
mov al, byte [esp + 0x1dc]
test al, al
jne 0x54d852
mov eax, dword [esi + 0x140]
test ah, 1
jne 0x54d8c4
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov dword [ebp], eax
inc esi
add ebp, 4
mov dword [esp + 0x18], esi
test bl, bl
jne 0x54d8bf
movsx ecx, word [esp + 0x12]
movsx eax, ax
shl eax, 8
add eax, 0x80
lea edx, [esp + 0x5c]
shl ecx, 8
mov dword [esp + 0x5c], eax
add ecx, 0x80
lea eax, [esp + 0x80]
mov dword [esp + 0x60], ecx
mov ecx, dword [0x821c8c]
push edx
push eax
mov dword [esp + 0x6c], 0
call fcn.0069bf40
mov cx, word [esp + 0x10]
cmp cx, word [eax]
jne 0x54d8c4
mov dx, word [esp + 0x12]
cmp dx, word [eax + 2]
jne 0x54d8c4
mov byte [esp + 0x17], 1
cmp dword [esp + 0x18], 0x18
je 0x54de23
mov al, byte [esp + 0x1e4]
test al, al
je 0x54d8e4
cmp edi, dword [esp + 0x38]
jle 0x54da6f
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
lea ecx, [eax + edi]
mov eax, dword [esp + 0x1c]
add eax, edx
mov word [esp + 0x4c], cx
mov word [esp + 0x4e], ax
mov edx, dword [esp + 0x4c]
movsx eax, ax
movsx ecx, cx
shl eax, 9
add eax, ecx
mov dword [esp + 0x10], edx
js 0x54d92c
cmp eax, 0x40000
jge 0x54d92c
mov ecx, dword [0x81a938]
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x54d92c
mov esi, eax
jmp 0x54d937
mov dword [0xa57614], edx
mov esi, 0xa575f0
mov ecx, dword [esp + 0x2c]
push 1
push esi
call fcn.005573e0
test al, al
je 0x54da6f
mov edx, dword [esp + 0x1d0]
mov eax, dword [esp + 0x1c0]
mov ecx, dword [esp + 0x1bc]
push edx
mov edx, dword [esp + 0x1bc]
push ebx
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x1dc]
push ecx
mov ecx, dword [esp + 0x1dc]
push edx
push eax
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
call fcn.0054e030
test al, al
je 0x54da6f
mov al, byte [esp + 0x1d4]
test al, al
je 0x54d9cd
mov eax, dword [esi + 0x140]
movsx edx, byte [esi + 0x11b]
shr eax, 8
and eax, 1
shl eax, 2
mov ecx, eax
mov eax, dword [esp + 0x34]
sub eax, ecx
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jge 0x54da6f
mov al, byte [esp + 0x1d8]
test al, al
je 0x54d9e7
mov ecx, esi
call fcn.0047be00
test al, al
je 0x54da6f
mov al, byte [esp + 0x1dc]
test al, al
jne 0x54d9fd
mov eax, dword [esi + 0x140]
test ah, 1
jne 0x54da6f
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov dword [ebp], eax
inc esi
add ebp, 4
mov dword [esp + 0x18], esi
test bl, bl
jne 0x54da6a
movsx ecx, word [esp + 0x12]
movsx eax, ax
shl eax, 8
add eax, 0x80
lea edx, [esp + 0x68]
shl ecx, 8
mov dword [esp + 0x68], eax
add ecx, 0x80
lea eax, [esp + 0x88]
mov dword [esp + 0x6c], ecx
mov ecx, dword [0x821c8c]
push edx
push eax
mov dword [esp + 0x78], 0
call fcn.0069bf40
mov cx, word [esp + 0x10]
cmp cx, word [eax]
jne 0x54da6f
mov dx, word [esp + 0x12]
cmp dx, word [eax + 2]
jne 0x54da6f
mov byte [esp + 0x17], 1
cmp dword [esp + 0x18], 0x18
je 0x54de23
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jle 0x54d72a
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x18]
cmp ebp, 0x18
je 0x54de27
mov eax, dword [esp + 0x1c]
inc edi
dec eax
cmp edi, eax
jg 0x54ddf6
lea ebp, [esp + ebp*4 + 0x8c]
mov al, byte [esp + 0x1e4]
test al, al
jne 0x54dc4a
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
sub ecx, eax
mov word [esp + 0x3c], cx
lea eax, [edi + edx]
mov word [esp + 0x3e], ax
mov edx, dword [esp + 0x3c]
movsx eax, ax
movsx ecx, cx
shl eax, 9
add eax, ecx
mov dword [esp + 0x10], edx
js 0x54db04
cmp eax, 0x40000
jge 0x54db04
mov ecx, dword [0x81a938]
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x54db04
mov esi, eax
jmp 0x54db0f
mov dword [0xa57614], edx
mov esi, 0xa575f0
mov ecx, dword [esp + 0x2c]
push 1
push esi
call fcn.005573e0
test al, al
je 0x54dc4a
mov edx, dword [esp + 0x1d0]
mov eax, dword [esp + 0x1c0]
mov ecx, dword [esp + 0x1bc]
push edx
mov edx, dword [esp + 0x1bc]
push ebx
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x1dc]
push ecx
mov ecx, dword [esp + 0x1dc]
push edx
push eax
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
call fcn.0054e030
test al, al
je 0x54dc4a
mov al, byte [esp + 0x1d4]
test al, al
je 0x54dba5
mov eax, dword [esi + 0x140]
movsx edx, byte [esi + 0x11b]
shr eax, 8
and eax, 1
shl eax, 2
mov ecx, eax
mov eax, dword [esp + 0x34]
sub eax, ecx
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jge 0x54dc4a
mov al, byte [esp + 0x1d8]
test al, al
je 0x54dbbf
mov ecx, esi
call fcn.0047be00
test al, al
je 0x54dc4a
mov al, byte [esp + 0x1dc]
test al, al
jne 0x54dbd5
mov eax, dword [esi + 0x140]
test ah, 1
jne 0x54dc4a
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov dword [ebp], eax
inc esi
add ebp, 4
mov dword [esp + 0x18], esi
test bl, bl
jne 0x54dc45
movsx ecx, word [esp + 0x12]
movsx eax, ax
shl eax, 8
add eax, 0x80
lea edx, [esp + 0x74]
shl ecx, 8
mov dword [esp + 0x74], eax
add ecx, 0x80
lea eax, [esp + 0x84]
mov dword [esp + 0x78], ecx
mov ecx, dword [0x821c8c]
push edx
push eax
mov dword [esp + 0x84], 0
call fcn.0069bf40
mov cx, word [esp + 0x10]
cmp cx, word [eax]
jne 0x54dc4a
mov dx, word [esp + 0x12]
cmp dx, word [eax + 2]
jne 0x54dc4a
mov byte [esp + 0x17], 1
cmp dword [esp + 0x18], 0x18
je 0x54de23
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add ecx, eax
mov word [esp + 0x20], cx
lea eax, [edi + edx]
mov word [esp + 0x22], ax
mov edx, dword [esp + 0x20]
movsx eax, ax
movsx ecx, cx
shl eax, 9
add eax, ecx
mov dword [esp + 0x10], edx
js 0x54dc9d
cmp eax, 0x40000
jge 0x54dc9d
mov ecx, dword [0x81a938]
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x54dc9d
mov esi, eax
jmp 0x54dca8
mov dword [0xa57614], edx
mov esi, 0xa575f0
mov ecx, dword [esp + 0x2c]
push 1
push esi
call fcn.005573e0
test al, al
je 0x54dddd
mov edx, dword [esp + 0x1d0]
mov eax, dword [esp + 0x1c0]
mov ecx, dword [esp + 0x1bc]
push edx
mov edx, dword [esp + 0x1bc]
push ebx
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x1dc]
push ecx
mov ecx, dword [esp + 0x1dc]
push edx
push eax
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
call fcn.0054e030
test al, al
je 0x54dddd
mov al, byte [esp + 0x1d4]
test al, al
je 0x54dd3e
mov eax, dword [esi + 0x140]
movsx edx, byte [esi + 0x11b]
shr eax, 8
and eax, 1
shl eax, 2
mov ecx, eax
mov eax, dword [esp + 0x34]
sub eax, ecx
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jge 0x54dddd
mov al, byte [esp + 0x1d8]
test al, al
je 0x54dd58
mov ecx, esi
call fcn.0047be00
test al, al
je 0x54dddd
mov al, byte [esp + 0x1dc]
test al, al
jne 0x54dd6e
mov eax, dword [esi + 0x140]
test ah, 1
jne 0x54dddd
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov dword [ebp], eax
inc esi
add ebp, 4
mov dword [esp + 0x18], esi
test bl, bl
jne 0x54ddd8
movsx ecx, word [esp + 0x12]
movsx eax, ax
shl eax, 8
add eax, 0x80
lea edx, [esp + 0x50]
shl ecx, 8
mov dword [esp + 0x50], eax
add ecx, 0x80
lea eax, [esp + 0x40]
mov dword [esp + 0x54], ecx
mov ecx, dword [0x821c8c]
push edx
push eax
mov dword [esp + 0x60], 0
call fcn.0069bf40
mov cx, word [esp + 0x10]
cmp cx, word [eax]
jne 0x54dddd
mov dx, word [esp + 0x12]
cmp dx, word [eax + 2]
jne 0x54dddd
mov byte [esp + 0x17], 1
cmp dword [esp + 0x18], 0x18
je 0x54de23
mov eax, dword [esp + 0x1c]
inc edi
dec eax
cmp edi, eax
jle 0x54daad
mov ebp, dword [esp + 0x18]
cmp ebp, 0x18
je 0x54de27
mov al, byte [esp + 0x17]
test al, al
jne 0x54de27
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
inc eax
dec edx
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], edx
jl 0x54d713
jmp 0x54de27
mov ebp, dword [esp + 0x18]
test ebp, ebp
jle 0x54e00e
mov eax, dword [esp + 0x18]
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x24], ecx
test eax, eax
mov dword [esp + 0x28], esi
jle 0x54defd
lea ecx, [esp + 0xec]
lea ebx, [esp + 0x14c]
lea esi, [esp + 0x8c]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], eax
mov di, word [esi]
mov bp, word [esi + 2]
movsx edx, di
shl edx, 8
movsx eax, bp
add edx, 0x80
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], edx
lea edx, [esp + 0x40]
shl eax, 8
add eax, 0x80
push ecx
mov ecx, dword [0x821c8c]
push edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0
call fcn.0069bf40
mov eax, dword [eax]
cmp ax, di
mov dword [esp + 0x3c], eax
jne 0x54ded3
cmp word [esp + 0x3e], bp
jne 0x54ded3
mov eax, dword [esp + 0x30]
mov ecx, dword [esi]
mov edx, dword [esp + 0x24]
mov dword [eax], ecx
inc edx
add eax, 4
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], eax
jmp 0x54dee3
mov ecx, dword [esp + 0x28]
mov edx, dword [esi]
inc ecx
mov dword [ebx], edx
mov dword [esp + 0x28], ecx
add ebx, 4
mov eax, dword [esp + 0x20]
add esi, 4
dec eax
mov dword [esp + 0x20], eax
jne 0x54de64
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x1e0]
mov eax, dword [0xa56e3c]
cmp word [ebp], ax
jne 0x54df64
mov dx, word [ebp + 2]
cmp dx, word [0xa56e3e]
jne 0x54df64
mov eax, dword [0xa2894c]
test ecx, ecx
cdq
je 0x54df45
idiv ecx
mov eax, dword [esp + 0x1b0]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + edx*4 + 0xdc]
mov dword [eax], ecx
add esp, 0x19c
ret 0x38
idiv esi
mov eax, dword [esp + 0x1b0]
pop edi
pop esi
pop ebp
pop ebx
mov edx, dword [esp + edx*4 + 0x13c]
mov dword [eax], edx
add esp, 0x19c
ret 0x38
test ecx, ecx
mov ebx, ecx
jne 0x54df6c
mov ebx, esi
xor edi, edi
mov dword [esp + 0x40], 0
test ebx, ebx
mov dword [esp + 0x44], 0x40f86a00
mov dword [esp + 0x30], eax
jle 0x54dff4
mov eax, dword [esp + 0x24]
test eax, eax
lea eax, [esp + edi*4 + 0xec]
jne 0x54df9c
lea eax, [esp + edi*4 + 0x14c]
mov esi, dword [eax]
sub esp, 8
movsx ecx, word [ebp]
movsx edx, word [ebp + 2]
movsx eax, si
mov dword [esp + 0x28], esi
sub eax, ecx
movsx ecx, word [esp + 0x2a]
sub ecx, edx
mov edx, ecx
imul edx, ecx
mov ecx, eax
imul ecx, eax
add edx, ecx
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
fstp qword [esp]
call fcn.004b9f30
fcom qword [esp + 0x48]
add esp, 8
fnstsw ax
test ah, 1
je 0x54dfed
fstp qword [esp + 0x40]
mov dword [esp + 0x30], esi
jmp 0x54dfef
fstp st(0)
inc edi
cmp edi, ebx
jl 0x54df86
mov eax, dword [esp + 0x1b0]
mov edx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0x19c
ret 0x38
mov eax, dword [esp + 0x1b0]
mov ecx, dword [0xa56e3c]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x19c
ret 0x38