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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [0x55800c]
xor eax, esp
mov dword [esp + 0xd0], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
mov dword [esp + 0x10], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x68], edi
mov dword [esp + 0x54], ebx
mov eax, dword [edi + 8]
mov esi, dword [edi]
mov ecx, dword [edi + 4]
mov edi, dword [edi + 0xc]
mov dword [esp + 0x2c], eax
sub eax, esi
mov dword [esp + 0x40], eax
mov eax, edi
sub eax, ecx
mov dword [esp + 0x38], ecx
mov ecx, dword [ebx + 0x64]
mov dword [esp + 0x28], eax
mov eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x3c], esi
mov dword [ebx + 0x1998], ecx
cmp ecx, 0xffffffff
je 0x455328
cmp ecx, 2
jle 0x455328
mov dword [ebx + 0x1998], 2
mov eax, 2
cmp ecx, 9
jne 0x45533c
mov dword [ebx + 0x1998], 3
mov eax, 3
movzx esi, byte [ebx + 0x20]
shl eax, 5
shr esi, 3
imul esi, dword [eax + 0x518d58]
cmp dword [ebx + 0x1990], esi
jge 0x4553e5
mov eax, dword [ebx + 0x198c]
test eax, eax
je 0x45536c
push eax
call fcn.004cbf38
add esp, 4
lea eax, [esi + 1]
push eax
call fcn.004cbf7b
add esp, 4
mov dword [ebx + 0x198c], eax
test eax, eax
jne 0x4553db
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx]
mov dword [esp + 0x88], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x8c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x90], eax
mov eax, dword [ecx + 0xc]
mov ecx, ebx
mov dword [esp + 0x94], eax
lea eax, [esp + 0x88]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.004536d0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [esp + 0x18]
mov dword [ebx + 0x1990], esi
cmp byte [ebx + 0x21], 0x18
jne 0x455406
mov eax, 0xff
cmp word [ebx + 0x24], ax
jne 0x455406
cmp word [ebx + 0x26], ax
jne 0x455406
cmp word [ebx + 0x28], ax
jne 0x455406
mov al, 1
jmp 0x455408
xor al, al
mov byte [ebx + 0x1994], al
cmp dword [ebx + 0x74], 0
je 0x455b0b
mov eax, dword [esp + 0x28]
imul eax, dword [esp + 0x40]
mov dword [esp + 0x60], eax
cmp eax, 0x1000
jl 0x455b0b
mov eax, dword [ebx + 0x1998]
mov esi, dword [esp + 0x40]
shl eax, 5
mov ecx, dword [eax + 0x518d5c]
cmp esi, ecx
mov eax, dword [eax + 0x518d58]
cmovg esi, ecx
cdq
idiv esi
mov edx, dword [esp + 0x38]
mov ecx, edx
mov dword [esp + 0x24], edx
mov esi, eax
mov dword [esp + 0x4c], esi
cmp edx, edi
jge 0x455af8
imul eax, dword [esp + 0x40]
movsd xmm2, qword [0x550340]
movsd xmm3, qword [0x550328]
movsd xmm4, qword [0x550380]
mov dword [esp + 0x74], eax
nop word [eax + eax]
mov eax, ecx
sub eax, edx
cmp eax, esi
jl 0x455514
add esi, edx
lea eax, [esp + 0x88]
push esi
push dword [esp + 0x30]
push edx
push dword [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x88]
push eax
push dword [esp + 0x20]
mov ecx, ebx
push dword [esp + 0x1c]
push edi
call fcn.00456170
mov ecx, dword [esp + 0x14]
push eax
push dword [esp + 0x20]
call fcn.004862f0
mov eax, dword [esp + 0x28]
mov edx, esi
sub eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x74]
sub dword [esp + 0x60], ecx
movsd xmm2, qword [0x550340]
movsd xmm3, qword [0x550328]
movsd xmm4, qword [0x550380]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x38], edx
mov dword [esp + 0x28], eax
jmp 0x45551c
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
lea ebx, [ecx + 0x10]
lea esi, [eax + edx]
mov dword [esp + 0x80], ebx
cmp ebx, esi
mov dword [esp + 0x84], esi
mov ebx, dword [esp + 0x54]
jg 0x455542
mov dword [esp + 0x6c], 0x10
jmp 0x45554a
sub eax, ecx
add eax, edx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x3c]
mov esi, eax
mov dword [esp + 0x10], esi
cmp eax, dword [esp + 0x2c]
jge 0x4557c4
mov eax, dword [esp + 0x40]
mov dword [esp + 0x64], eax
nop word [eax + eax]
lea edx, [esi + 0x10]
cmp edx, dword [esp + 0x2c]
mov dword [esp + 0x7c], edx
mov edx, 0x10
push 0
cmovle eax, edx
lea edx, [esp + 0x5c]
push edx
push dword [esp + 0x74]
push eax
push ecx
push esi
push edi
mov ecx, ebx
call fcn.00456040
test al, al
je 0x45579f
cmp dword [ebx + 0x70], 3
jne 0x455630
cmp dword [ebx + 0x6c], 0xffffffff
je 0x455630
mov ecx, dword [esp + 0x58]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movd xmm1, eax
shr eax, 0x1f
cvtdq2pd xmm1, xmm1
addsd xmm1, qword [eax*8 + 0x550460]
mov eax, ecx
shr eax, 8
movzx eax, al
mulsd xmm1, qword [0x550330]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x550460]
movzx eax, cl
mulsd xmm0, xmm2
addsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x550460]
mulsd xmm0, xmm3
addsd xmm1, xmm0
addsd xmm1, xmm4
cvttsd2si eax, xmm1
imul eax, eax, 0x10101
mov dword [esp + 0x58], eax
jmp 0x455634
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x24]
xor edx, edx
mov edi, dword [esp + 0x64]
mov ebx, ecx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x28]
sub eax, ecx
mov dword [esp + 0x34], 0
add eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x5c], edi
lea esi, [eax + ebx]
mov dword [esp + 0x50], ecx
cmp ebx, esi
mov dword [esp + 0x48], esi
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x10]
jge 0x45577e
nop dword [eax]
lea edx, [ecx + 0x10]
mov esi, edi
cmp edx, dword [esp + 0x48]
mov dword [esp + 0x78], edx
mov edx, 0x10
cmovle eax, edx
cmp edi, edx
push 1
cmovg esi, edx
mov dword [esp + 0x48], eax
lea edx, [esp + 0x74]
push edx
push eax
push esi
push ecx
push dword [esp + 0x24]
mov ecx, ebx
push dword [esp + 0x30]
call fcn.00456040
test al, al
je 0x455776
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x5c]
lea edi, [esi + edx]
lea ebx, [ecx + edx]
cmp edi, ebx
jge 0x455719
lea eax, [edi + 0x10]
cmp eax, ebx
jg 0x4556df
mov esi, 0x10
jmp 0x4556e5
mov esi, ecx
sub esi, edi
add esi, edx
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x70]
push 1
push eax
push dword [esp + 0x4c]
push esi
push dword [esp + 0x60]
push edi
push dword [esp + 0x30]
call fcn.00456040
test al, al
je 0x455715
mov ecx, dword [esp + 0x5c]
add edi, esi
mov edx, dword [esp + 0x10]
cmp edi, ebx
jl 0x4556d1
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x44]
sub edi, edx
sub esi, dword [esp + 0x24]
mov edx, edi
add esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x20]
imul ecx, dword [esp + 0x34]
sub dword [esp + 0x30], 0x10
mov eax, dword [esp + 0x78]
mov ebx, dword [esp + 0x54]
imul edx, esi
mov dword [esp + 0x50], eax
mov eax, edi
mov dword [esp + 0x5c], edi
cmp edx, ecx
mov ecx, dword [esp + 0x50]
cmovle eax, dword [esp + 0x34]
cmovle esi, dword [esp + 0x20]
mov edx, esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], esi
cmp ecx, dword [esp + 0x48]
jl 0x455680
jmp 0x45577a
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x34], edx
imul edx, eax
mov dword [esp + 0x30], eax
cmp edx, dword [esp + 0x60]
je 0x4557e5
cmp edx, 0x800
jge 0x4557e5
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x7c]
sub eax, 0x10
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], esi
mov dword [esp + 0x64], eax
cmp esi, dword [esp + 0x2c]
jl 0x455570
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x24], ecx
cmp ecx, dword [esp + 0x84]
jge 0x455af8
mov esi, dword [esp + 0x4c]
jmp 0x455490
mov eax, dword [esp + 0x24]
mov ecx, ebx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x68]
push dword [esp + 0x3c]
push dword [esp + 0x58]
push esi
push dword [esp + 0x5c]
push dword [esp + 0x3c]
call fcn.00455b40
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x98]
push edi
push dword [esp + 0x30]
push esi
push dword [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov esi, dword [esp + 0x34]
lea eax, [esp + 0xa8]
add esi, edi
push esi
push dword [esp + 0x14]
push edi
push dword [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x30]
push esi
push dword [esp + 0x30]
push edi
push eax
lea eax, [esp + 0xc8]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x38]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0xd0]
push esi
push dword [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_SetRect]
xor esi, esi
mov dword [esp + 0x44], esi
cmp esi, 2
jne 0x455a86
mov ecx, dword [esp + 0x10]
lea eax, [edi + 1]
push eax
lea eax, [ecx + 1]
push eax
push edi
push ecx
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x94]
lea edi, [ebx + 0x10]
mov edx, dword [esp + 0x8c]
sub eax, edx
mov esi, dword [ebx + 0x40]
push eax
mov eax, dword [esp + 0x94]
sub eax, dword [esp + 0x8c]
push eax
movzx eax, byte [edi]
shr eax, 3
imul eax, dword [esp + 0x90]
push esi
push dword [ebx + 0x198c]
imul edx, esi
add eax, dword [esp + 0x28]
add edx, eax
lea eax, [ebx + 0x30]
push edx
push eax
mov eax, dword [ebx + 4]
push edi
push dword [ebx + 8]
call eax
add esp, 0x20
mov ecx, ebx
push dword [esp + 0x34]
push dword [esp + 0x34]
push dword [esp + 0x28]
push dword [esp + 0x1c]
call fcn.004567a0
cmp byte [ebx + 0x1994], 0
je 0x455952
push 1
push dword [ebx + 0x198c]
mov ecx, ebx
call fcn.00457cc0
mov esi, 3
jmp 0x455959
movzx esi, byte [ebx + 0x20]
shr esi, 3
mov ecx, dword [ebx + 0x1988]
mov eax, dword [ebx + 0x1984]
push esi
mov byte [ecx + eax], 0x80
push dword [ebx + 0x198c]
inc dword [ebx + 0x1988]
push dword [esp + 0x24]
call fcn.004cd830
mov edx, dword [esp + 0x20]
add esp, 0xc
mov edi, dword [ebx + 0x1988]
mov ecx, dword [ebx + 0x1984]
cmp dword [edx + 8], 0xffffffff
je 0x455a6a
test edi, edi
je 0x4559fc
cmp byte [edx + 0x18], 0
je 0x4559ef
mov eax, dword [edx + 0x10]
cmp byte [eax + 0x21], 0
je 0x4559ef
cmp byte [edx + 0x68], 0
je 0x4559cf
mov eax, dword [edx + 0x64]
add eax, dword [edx + 0x6c]
push edi
push ecx
push eax
call fcn.004cd830
mov edx, dword [esp + 0x20]
add esp, 0xc
add dword [edx + 0x6c], edi
jmp 0x4559fc
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 0
push eax
push edi
push ecx
mov ecx, edx
call fcn.00486620
mov edi, dword [esp + 0x4c]
mov ecx, eax
mov edx, dword [esp + 0x14]
push edi
push ecx
mov ecx, edx
call fcn.004860d0
mov edx, dword [esp + 0x14]
cmp dword [edx + 8], 0xffffffff
je 0x455a6a
test esi, esi
je 0x455a6a
cmp byte [edx + 0x18], 0
mov ecx, esi
je 0x455a5d
mov eax, dword [edx + 0x10]
cmp byte [eax + 0x21], 0
je 0x455a5d
cmp byte [edx + 0x68], 0
je 0x455a3a
mov eax, dword [edx + 0x64]
add eax, dword [edx + 0x6c]
push esi
push dword [esp + 0x20]
push eax
call fcn.004cd830
mov eax, dword [esp + 0x20]
add esp, 0xc
add dword [eax + 0x6c], esi
jmp 0x455a6a
lea eax, [esp + 0x48]
mov dword [esp + 0x48], 0
push eax
push esi
push dword [esp + 0x24]
mov ecx, edx
call fcn.00486620
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x14]
jmp 0x455a61
mov eax, dword [esp + 0x1c]
push ecx
push eax
mov ecx, edx
call fcn.004860d0
mov ecx, dword [ebx + 0x1988]
mov edi, dword [esp + 0x20]
lea eax, [ecx - 0xc]
add eax, esi
add dword [ebx + 0x5c], eax
lea eax, [esi + ecx]
add dword [ebx + 0x60], eax
mov esi, dword [esp + 0x44]
mov ecx, esi
lea edx, [esp + 0x98]
shl ecx, 4
add edx, ecx
mov eax, dword [edx]
cmp eax, dword [esp + ecx + 0xa0]
je 0x455ad1
mov eax, dword [esp + ecx + 0x9c]
cmp eax, dword [esp + ecx + 0xa4]
je 0x455ad1
push edx
push dword [esp + 0x20]
mov ecx, ebx
push dword [esp + 0x1c]
push dword [esp + 0x24]
call fcn.004552a0
mov ecx, dword [esp + 0x14]
push eax
push dword [esp + 0x20]
call fcn.004862f0
inc esi
mov dword [esp + 0x44], esi
cmp esi, 4
jl 0x4558a2
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x68]
push ecx
push dword [esp + 0x20]
push dword [esp + 0x1c]
push dword [esp + 0x24]
jmp 0x455b19
mov ecx, dword [esp + 0x68]
push ecx
push dword [esp + 0x20]
push dword [esp + 0x1c]
push edx
mov ecx, ebx
call fcn.00456170
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret 0x10