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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x613bad
mov eax, dword fs:[0]
push eax
sub esp, 0x5e8
mov eax, dword [0x6963f4]
xor eax, esp
mov dword [esp + 0x5b0], eax
push ebx
push esi
push edi
mov eax, dword [0x6963f4]
xor eax, esp
push eax
lea eax, [esp + 0x5f8]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.gdi32.dll_GetDeviceCaps]
mov dword [esp + 0x7c], ecx
mov ecx, dword [ebx + 8]
push 0x58
push ecx
mov dword [esp + 0x6c], eax
call edi
mov edx, dword [ebx + 8]
push 0x5a
push edx
mov dword [esp + 0x20], eax
call edi
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 8]
push 8
push eax
call edi
mov ecx, dword [ebx + 8]
push 0xa
push ecx
mov dword [esp + 0x70], eax
call edi
lea edx, [esp + 0x8c]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.gdi32.dll_GetWindowExtEx]
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x84]
push ecx
push edx
call dword [sym.imp.gdi32.dll_GetViewportExtEx]
fild dword [esp + 0x1c]
fst qword [esp + 0x6c]
fild dword [0x69ef28]
fdiv qword [0x655a38]
fmulp st(1)
fadd qword [0x655768]
call fcn.005a3c30
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x88]
mov esi, dword [sym.imp.kernel32.dll_MulDiv]
push ecx
push edx
push eax
mov dword [esp + 0x54], eax
call esi
fild dword [esp + 0x18]
mov dword [esp + 0x48], eax
fst qword [esp + 0x54]
fild dword [0x69ef24]
fdiv qword [0x655a38]
fmulp st(1)
fadd qword [0x655768]
call fcn.005a3c30
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x84]
push ecx
push edx
push eax
mov dword [esp + 0x50], eax
call esi
fild dword [0x69ef2c]
mov dword [esp + 0x44], eax
fdiv qword [0x655a38]
fmul qword [esp + 0x54]
fadd qword [0x655768]
call fcn.005a3c30
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x84]
sub ecx, eax
mov eax, dword [esp + 0x8c]
push eax
push edx
push ecx
mov dword [esp + 0x58], ecx
call esi
mov dword [esp + 0x4c], eax
fild dword [0x69ef30]
fdiv qword [0x655a38]
fmul qword [esp + 0x6c]
fadd qword [0x655768]
call fcn.005a3c30
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x88]
sub ecx, eax
mov eax, dword [esp + 0x90]
push eax
push edx
push ecx
mov dword [esp + 0x5c], ecx
call esi
mov ecx, dword [esp + 0x7c]
mov ecx, dword [ecx + 0xbd8]
test ecx, ecx
mov dword [esp + 0x50], eax
je 0x42172c
mov edx, dword [esp + 0x64]
cmp dword [edx + 8], 0
je 0x4215fc
mov eax, dword [ebx + 4]
push eax
push ecx
mov ecx, dword [ebx + 8]
call fcn.00430050
jmp 0x4228af
mov ecx, dword [esp + 0x1c]
push ecx
push 0x5a0
push eax
call esi
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x50]
push 0x5a0
push eax
call esi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x48]
push ecx
push 0x5a0
push edx
mov dword [esp + 0x20], eax
call esi
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x18]
push eax
push 0x5a0
push ecx
call esi
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x68]
mov dword [esp + 0xe0], edx
mov edx, dword [ebx + 8]
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x14]
push 0x6f
push edx
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], ecx
call edi
mov dword [esp + 0x68], eax
mov eax, dword [ebx + 8]
push 0x6e
push eax
call edi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x68]
push ecx
push 0x5a0
push edx
mov edi, eax
call esi
mov ebx, eax
mov eax, dword [esp + 0x18]
push eax
push 0x5a0
push edi
mov dword [esp + 0xc4], 0
call esi
mov edx, dword [0x6b4060]
xor ecx, ecx
mov dword [esp + 0xec], ecx
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0xf0], ecx
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x7c]
mov eax, dword [eax + 0xbd8]
lea ecx, [esp + 0xd4]
push ecx
push 1
mov dword [esp + 0x100], ebx
mov dword [esp + 0x104], edx
mov dword [esp + 0x108], 0xffffffff
mov edx, dword [eax + 0x20]
push 0x439
push edx
call dword [sym.imp.user32.dll_SendMessageA]
mov dword [0x6b4060], eax
jmp 0x4228af
push 0x88
call fcn.0055dbcb
mov edi, eax
add esp, 4
test edi, edi
je 0x421755
push 0x88
push 0
push edi
call fcn.005a3bb0
add esp, 0xc
mov dword [esp + 0x1c], edi
jmp 0x42175d
mov dword [esp + 0x1c], 0
mov edi, dword [esp + 0x7c]
mov ecx, dword [edi + 0x54]
call fcn.0041d310
cmp dword [0x6b4584], 0
mov dword [esp + 0x14], eax
jne 0x421799
cmp dword [edi + 0xb14], 0
je 0x421799
push 0
mov ecx, eax
call fcn.00449f30
mov eax, dword [edi + 0x78]
add esp, 4
push 1
push 0
push eax
call dword [sym.imp.user32.dll_InvalidateRect]
mov edi, dword [esp + 0x14]
add edi, 0x20
call fcn.005669f5
test eax, eax
je 0x4217b4
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x4217b6
xor eax, eax
push eax
push 0x640b14
call fcn.005669af
fld qword [0x6559e0]
add esp, 8
cmp dword [edi + 0x18], 0
mov dword [esp + 0x18], eax
jne 0x4217f2
mov ecx, eax
fld qword [ecx + 0x1680]
fmul qword [0x655a38]
fdiv st(1)
fadd qword [0x655768]
call fcn.005a3c30
mov dword [edi + 0x18], eax
cmp dword [edi + 0x1c], 0
jne 0x42181a
mov edx, dword [esp + 0x18]
fld qword [edx + 0x1678]
fmul qword [0x655a38]
fdivrp st(1)
fadd qword [0x655768]
call fcn.005a3c30
mov dword [edi + 0x1c], eax
jmp 0x42181c
fstp st(0)
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x448]
mov ecx, dword [esp + 0x1c]
push eax
push edi
push ecx
call sub.ltkrn10n.dll_Ordinal_110
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x10]
cmp eax, 0x10
je 0x421843
cmp eax, 0x20
jne 0x42185a
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
push 0
push 0x18
push eax
push eax
call sub.ltkrn10n.dll_Ordinal_108
mov eax, dword [ebx + 4]
push 1
push eax
mov dword [esp + 0x70], 0
call dword [sym.imp.gdi32.dll_SetMapMode]
fild dword [0x69ef28]
fld qword [0x655a38]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x44]
fdiv st(1), st(0)
mov edx, dword [eax + 0x48]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
fld qword [esp + 0x6c]
fmul st(2), st(0)
fld qword [0x655768]
fadd st(3), st(0)
fxch st(3)
call fcn.005a3c30
fild dword [0x69ef24]
mov edi, eax
mov dword [esp + 0x24], edi
fdivrp st(2)
fld qword [esp + 0x54]
fmul st(2), st(0)
fxch st(2)
faddp st(3)
fxch st(2)
call fcn.005a3c30
fld qword [0x69ef10]
fdiv qword [0x655ab8]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
fld st(0)
fmulp st(2)
fild dword [esp + 0x14]
fdivp st(2)
fild dword [eax + 8]
fmulp st(2)
fxch st(1)
call fcn.005a3c30
fmulp st(1)
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
fidiv dword [esp + 0x18]
sub ecx, eax
mov dword [esp + 0x28], ecx
fimul dword [edx + 0xc]
call fcn.005a3c30
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x20]
sub edi, eax
mov eax, dword [esp + 0x8c]
push eax
push ecx
push edx
mov dword [esp + 0x38], edi
call esi
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x90]
push eax
push ecx
push edx
call esi
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x8c]
push eax
push ecx
push edx
call esi
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x90]
push eax
push ecx
push edx
call esi
mov dword [esp + 0x2c], eax
call fcn.00439e20
xor ecx, ecx
xor esi, esi
xor eax, eax
xor edx, edx
mov dword [0x6b4a0c], ecx
mov dword [0x6b4a14], esi
mov dword [0x6b4a1c], ecx
mov dword [0x6b4a24], esi
mov dword [0x6b4a08], eax
mov dword [0x6b4a18], eax
mov eax, dword [0x6b4a00]
mov ecx, 0xf
mov esi, 0x6b467c
lea edi, [esp + 0x584]
mov dword [0x6b4a10], edx
mov dword [0x6b4a20], edx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax - 0xc]
test eax, eax
mov dword [esp + 0x18], edx
jne 0x4219e7
mov ecx, dword [0x6b4a04]
cmp dword [ecx - 0xc], edx
je 0x421bd6
mov edx, dword [esp + 0x50]
sub edx, dword [esp + 0x48]
imul edx, dword [0x6b40a4]
test edx, edx
mov dword [esp + 0x54], edx
fild dword [esp + 0x54]
jge 0x421a08
fadd qword [0x655778]
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x30]
sub ecx, dword [eax + 0x28]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fmul qword [0x655a50]
fdiv qword [esp + 0x6c]
fdivp st(1)
fadd qword [0x655768]
fchs
call fcn.005a3c30
lea edx, [esp + 0x584]
push edx
mov dword [esp + 0x588], eax
mov dword [esp + 0x58c], 0
call dword [sym.imp.gdi32.dll_CreateFontIndirectA]
push eax
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.gdi32.dll_SelectObject]
mov ecx, dword [ebx + 4]
push 0
push ecx
call dword [sym.imp.gdi32.dll_SetTextColor]
cmp dword [0x69ef08], 0
mov esi, dword [esp + 0x28]
je 0x421a81
mov edi, dword [esp + 0x4c]
sub edi, dword [esp + 0x44]
jmp 0x421a87
mov edi, esi
sub edi, dword [esp + 0x20]
mov eax, dword [esp + 0x584]
cdq
sub eax, edx
sar eax, 1
neg eax
mov dword [esp + 0x18], eax
mov eax, dword [0x6b4a00]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x421b3b
mov edx, dword [0x6b4a08]
lea ecx, [edi + edx]
push 0
push eax
lea edx, [esp + 0x1c]
push edx
mov dword [0x6b4a10], ecx
call fcn.0041f260
add esp, 0xc
mov dword [esp + 0x600], 0
mov ecx, dword [0x6b40a8]
mov eax, dword [eax]
mov edx, dword [ebx]
mov edx, dword [edx + 0x68]
or ecx, 0x410
push ecx
push 0x6b4a08
push 0xffffffffffffffff
push eax
mov ecx, ebx
call edx
mov dword [esp + 0x600], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421b1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x6b4a08]
mov eax, dword [esp + 0x18]
add dword [0x6b4a14], eax
mov esi, dword [esp + 0x28]
lea edx, [edi + ecx]
mov dword [0x6b4a10], edx
mov eax, dword [0x6b4a04]
cmp dword [eax - 0xc], 0
je 0x421bda
mov ecx, dword [0x6b4a18]
push 0
push eax
lea edx, [esp + 0x1c]
add ecx, edi
push edx
mov dword [0x6b4a20], ecx
call fcn.0041f260
add esp, 0xc
mov dword [esp + 0x600], 1
mov ecx, dword [0x6b40ac]
mov eax, dword [eax]
mov edx, dword [ebx]
mov edx, dword [edx + 0x68]
or ecx, 0x410
push ecx
push 0x6b4a18
push 0xffffffffffffffff
push eax
mov ecx, ebx
call edx
mov dword [esp + 0x600], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421bbe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x6b4a18]
mov edx, dword [esp + 0x18]
add ecx, edi
add dword [0x6b4a24], edx
mov dword [0x6b4a20], ecx
mov esi, dword [esp + 0x28]
mov edi, dword [0x6b4a24]
sub edi, dword [0x6b4a0c]
mov eax, dword [esp + 0x24]
sub edi, dword [0x6b4a1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x40], edi
add edi, eax
add edi, dword [0x6b4a14]
cmp dword [0x69ef08], 0
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], eax
jne 0x421c54
cmp dword [0x69ef20], 0
je 0x421d43
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
mov edx, esi
sub edx, ecx
cmp edx, eax
jg 0x421c50
mov edx, dword [esp + 0x50]
sub edx, dword [esp + 0x48]
mov ecx, edi
sub ecx, dword [esp + 0x70]
cmp ecx, edx
jle 0x421d43
mov eax, dword [esp + 0x2c]
sub esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x4c]
sub eax, dword [esp + 0x24]
sub ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x50]
sub edx, dword [esp + 0x48]
mov dword [esp + 0x14], esi
fild dword [esp + 0x14]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [0x6b4a14]
sub eax, dword [0x6b4a0c]
fdiv st(1)
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov eax, dword [0x6b4a24]
sub eax, dword [0x6b4a1c]
cmp dword [0x69ef08], 2
fsubp st(1)
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fsubp st(1)
fdiv st(1)
jge 0x421cd0
fcom st(2)
fnstsw ax
test ah, 5
jp 0x421cd0
fstp st(2)
jmp 0x421cd2
fstp st(0)
fld st(1)
fmulp st(3)
fld qword [0x655768]
fadd st(3), st(0)
fxch st(3)
call fcn.005a3c30
fmulp st(1)
mov edi, dword [esp + 0x20]
mov esi, eax
faddp st(1)
add esi, edi
mov dword [esp + 0x28], esi
call fcn.005a3c30
mov ecx, dword [esp + 0x24]
add eax, ecx
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x6c], edi
lea edi, [ecx + eax]
mov ecx, dword [esp + 0x20]
add edi, dword [0x6b4a14]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x78], eax
mov eax, dword [0x6b4a18]
mov edx, esi
sub edx, ecx
add edx, dword [0x6b4a08]
sub eax, ecx
add eax, esi
mov dword [esp + 0x74], esi
mov dword [0x6b4a10], edx
mov dword [0x6b4a20], eax
cmp dword [0x69eed4], 0
je 0x421db2
mov ecx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x44]
mov eax, esi
sub eax, dword [esp + 0x20]
cmp eax, ecx
jge 0x421d7f
mov eax, dword [esp + 0x20]
sub eax, esi
sub eax, dword [esp + 0x44]
push 0
add eax, dword [esp + 0x50]
cdq
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.user32.dll_OffsetRect]
mov ecx, dword [esp + 0x50]
sub ecx, dword [esp + 0x48]
mov eax, edi
sub eax, dword [esp + 0x70]
cmp eax, ecx
jge 0x421db2
mov eax, dword [esp + 0x70]
sub eax, edi
sub eax, dword [esp + 0x48]
add eax, dword [esp + 0x50]
cdq
sub eax, edx
sar eax, 1
push eax
push 0
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.user32.dll_OffsetRect]
mov eax, dword [0x6b4a14]
sub eax, dword [0x6b4a0c]
mov esi, dword [sym.imp.user32.dll_OffsetRect]
push eax
push 0
lea eax, [esp + 0x28]
push eax
call esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 0x40], ecx
fild dword [esp + 0x40]
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xd0], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xb0], eax
sub eax, ecx
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
sub edi, dword [esp + 0x70]
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
fdivp st(1)
mov dword [esp + 0x40], edi
mov dword [esp + 0x14], eax
xor edx, edx
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], edx
mov edx, dword [esp + 0x28]
sub esp, 8
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], edx
mov dword [esp + 0x5c], edi
fstp qword [esp + 0x9c]
fild dword [esp + 0x48]
fidiv dword [esp + 0x1c]
fstp qword [esp]
call fcn.005a17d0
call fcn.005a3c30
mov edi, dword [esp + 0x7c]
sub edi, dword [esp + 0x74]
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x4c]
mov dword [esp + 0x48], edi
fild dword [esp + 0x48]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x1c], eax
fidiv dword [esp + 0x74]
fstp qword [esp]
call fcn.005a17d0
fstp st(0)
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x4c]
add esp, 8
cmp eax, edi
mov dword [esp + 0x6c], eax
jge 0x421f50
fild dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
fimul dword [edx + 8]
mov dword [esp + 0x6c], eax
fild dword [esp + 0x6c]
fdivp st(1)
fadd qword [0x655768]
call fcn.005a3c30
mov ecx, eax
mov eax, dword [esp + 0x64]
xor edi, edi
test eax, eax
mov dword [esp + 0x38], ecx
je 0x421f15
mov eax, dword [eax + 0x14]
sub eax, 1
xor edx, edx
div dword [esp + 0x14]
mov edi, eax
sub ecx, dword [esp + 0x30]
push 0
imul ecx, edi
push ecx
lea ecx, [esp + 0x38]
push ecx
call esi
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
push 0
imul eax, edi
neg eax
push eax
lea edx, [esp + 0xac]
push edx
call esi
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x44]
add eax, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x54]
mov dword [esp + 0x6c], eax
jge 0x42203e
fild dword [esp + 0x6c]
mov eax, dword [esp + 0x3c]
fld qword [esp + 0x94]
mov edi, dword [esp + 0x34]
sub eax, edi
fmul st(1), st(0)
mov dword [esp + 0x40], eax
fld qword [0x655768]
fadd st(2), st(0)
fxch st(2)
call fcn.005a3c30
cmp dword [esp + 0x64], 0
mov ecx, eax
mov dword [esp + 0x3c], ecx
je 0x42201a
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 0x14]
sub eax, 1
xor edx, edx
div dword [esp + 0x14]
test edx, edx
mov dword [esp + 0x14], edx
je 0x42201a
mov eax, dword [0x6b4a14]
sub eax, dword [0x6b4a0c]
sub ecx, edi
imul ecx, edx
mov dword [esp + 0x54], ecx
fild dword [esp + 0x54]
mov dword [esp + 0x54], eax
fild dword [esp + 0x54]
fmulp st(2)
fsubrp st(1)
faddp st(1)
call fcn.005a3c30
neg eax
push eax
push 0
lea ecx, [esp + 0x38]
push ecx
call esi
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
lea edx, [esp + 0xa4]
imul eax, dword [esp + 0x14]
neg eax
push eax
push 0
push edx
call esi
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x24], eax
jmp 0x422022
mov eax, dword [esp + 0x24]
fstp st(0)
fstp st(0)
sub eax, dword [esp + 0x48]
sub edi, ecx
add eax, dword [esp + 0x50]
add edi, dword [esp + 0x40]
mov dword [esp + 0x2c], eax
push edi
push 0
lea eax, [esp + 0x38]
push eax
call esi
mov ecx, dword [0x6b4a00]
cmp dword [ecx - 0xc], 0
je 0x4220d8
mov eax, dword [0x6b4a0c]
sub eax, dword [0x6b4a14]
mov edx, dword [esp + 0xa4]
add eax, dword [esp + 0xa8]
push eax
push edx
push 0x6b4a08
call esi
mov eax, dword [0x6b4a00]
push 0
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.0041f260
add esp, 0xc
mov dword [esp + 0x600], 2
mov ecx, dword [0x6b40a8]
mov eax, dword [eax]
mov edx, dword [ebx]
mov edx, dword [edx + 0x68]
or ecx, 0x10
push ecx
push 0x6b4a08
push 0xffffffffffffffff
push eax
mov ecx, ebx
call edx
mov dword [esp + 0x600], 0xffffffff
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4220d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x6b4a04]
cmp dword [ecx - 0xc], 0
je 0x422172
mov edx, dword [esp + 0xb0]
mov eax, dword [esp + 0xa4]
push edx
push eax
push 0x6b4a18
call esi
mov edx, dword [0x6b4a04]
mov ecx, dword [esp + 0x18]
add dword [0x6b4a1c], ecx
push 0
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.0041f260
add esp, 0xc
mov dword [esp + 0x600], 3
mov ecx, dword [0x6b40ac]
mov eax, dword [eax]
mov edx, dword [ebx]
mov edx, dword [edx + 0x68]
or ecx, 0x10
push ecx
push 0x6b4a18
push 0xffffffffffffffff
push eax
mov ecx, ebx
call edx
mov dword [esp + 0x600], 0xffffffff
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422172
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [0x69eec8], 0
jne 0x422188
cmp dword [0x69eecc], 0
je 0x422417
lea ecx, [esp + 0xc4]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0xbc]
push eax
call dword [sym.imp.user32.dll_IntersectRect]
mov esi, dword [esp + 0xc0]
mov edi, dword [esp + 0xb8]
mov edx, dword [esp + 0x3c]
sub edx, dword [esp + 0x34]
mov ecx, esi
sub ecx, edi
mov dword [esp + 0x54], ecx
fild dword [esp + 0x54]
mov dword [esp + 0x54], edx
fild dword [esp + 0x54]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
fdivp st(1)
mov dword [esp + 0x54], eax
fild dword [esp + 0x54]
fmulp st(1)
fld qword [0x655768]
fadd st(1), st(0)
fxch st(1)
call fcn.005a3c30
mov ecx, dword [esp + 0xbc]
sub ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0x38]
sub edx, dword [esp + 0x30]
add eax, dword [esp + 0x24]
mov dword [esp + 0x54], ecx
fild dword [esp + 0x54]
mov dword [esp + 0x54], edx
fild dword [esp + 0x54]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
fdivp st(1)
sub eax, dword [esp + 0x20]
mov dword [esp + 0x54], eax
fild dword [esp + 0x54]
fmulp st(1)
faddp st(1)
call fcn.005a3c30
add eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xbc]
push 0x88
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], esi
call fcn.0055dbcb
mov edi, eax
add esp, 4
test edi, edi
je 0x422284
push 0x88
push 0
push edi
call fcn.005a3bb0
add esp, 0xc
jmp 0x422286
xor edi, edi
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x1c]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x34]
sub edx, ecx
push edx
push eax
push ecx
push esi
push edi
call sub.ltkrn10n.dll_Ordinal_115
push esi
call sub.ltkrn10n.dll_Ordinal_125_1
push esi
call fcn.0055dbfb
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
sub dword [esp + 0x3c], eax
sub dword [esp + 0x40], ecx
xor esi, esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov eax, dword [edi + 0x28]
add esp, 4
cmp eax, esi
mov dword [esp + 0x1c], edi
jne 0x4222fe
cmp dword [edi + 0x10], 1
jne 0x4223a9
cmp dword [0x69eec8], esi
je 0x422417
push edi
call sub.ltimg10n.dll_Ordinal_117
jmp 0x422417
lea edx, [esp + 0x104]
push edx
push 0x100
push esi
push eax
call dword [sym.imp.gdi32.dll_GetPaletteEntries]
lea ecx, [esp + 0x104]
push ecx
push eax
push esi
push edi
mov dword [esp + 0x28], eax
call sub.ltkrn10n.dll_Ordinal_128
cmp eax, 1
jne 0x422417
xor esi, esi
cmp dword [esp + 0x18], esi
jle 0x422392
jmp 0x422340
movzx eax, byte [esp + esi*4 + 0x106]
mov edx, dword [0x69eecc]
xor ecx, ecx
mov ch, byte [esp + esi*4 + 0x104]
push edx
mov cl, byte [esp + esi*4 + 0x109]
shl ecx, 8
or ecx, eax
mov eax, dword [0x69eec8]
call fcn.0041ffb0
mov byte [esp + esi*4 + 0x10a], al
mov byte [esp + esi*4 + 0x109], ah
shr eax, 0x10
mov byte [esp + esi*4 + 0x108], al
add esi, 1
add esp, 4
cmp esi, dword [esp + 0x18]
jl 0x422340
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x104]
push ecx
push edx
push 0
push edi
call sub.ltkrn10n.dll_Ordinal_136
jmp 0x422417
push edi
call sub.ltkrn10n.dll_Ordinal_100_2
cmp dword [edi + 0xc], esi
mov dword [esp + 0x18], esi
jle 0x422411
xor esi, esi
cmp dword [edi + 8], esi
jle 0x422401
nop
mov eax, dword [esp + 0x18]
push esi
push eax
push edi
call sub.ltkrn10n.dll_Ordinal_132
mov edx, dword [0x69eecc]
mov ecx, eax
mov eax, dword [0x69eec8]
push edx
mov dword [esp + 0x58], ecx
call fcn.0041ffb0
add esp, 4
cmp dword [esp + 0x54], eax
je 0x4223f9
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
push edi
call sub.ltkrn10n.dll_Ordinal_139
add esi, 1
cmp esi, dword [edi + 8]
jl 0x4223c0
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [edi + 0xc]
mov dword [esp + 0x18], eax
jl 0x4223b8
push edi
call sub.ltkrn10n.dll_Ordinal_141
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + 4]
push ecx
push edx
call sub.ltdis10n.dll_Ordinal_122_1
test eax, eax
je 0x42244f
push eax
call fcn.0056fcdc
test eax, eax
mov dword [esp + 0x68], eax
je 0x42244f
push 1
push eax
mov ecx, ebx
call fcn.0056fe08
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.gdi32.dll_RealizePalette]
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebx
call fcn.0056f199
mov edx, dword [esp + 0x1c]
push edx
call sub.ltkrn10n.dll_Ordinal_106_2
mov edi, eax
lea eax, [esp + 0x104]
push eax
call fcn.004e31f0
lea ecx, [esp + 0x104]
push ecx
mov dword [esp + 0x604], 4
call fcn.004e34d0
push edi
call dword [sym.imp.kernel32.dll_GlobalFree]
mov esi, dword [esp + 0x7c]
mov edx, dword [esi + 0x58]
mov eax, dword [edx + 0x140]
add esi, 0x58
mov ecx, esi
call eax
call fcn.004b5460
test eax, eax
je 0x4224f3
call fcn.004b51e0
cmp eax, 0xffffffff
je 0x4224f3
mov dword [esp + 0x9c], 0
call fcn.004b51e0
lea ecx, [esp + 0x94]
push ecx
push 1
lea edx, [esp + 0x10c]
push edx
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], 0xffffff
call fcn.004e7450
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x128]
cmp ecx, eax
mov edx, dword [esp + 0x12c]
jg 0x422521
cmp dword [esp + 0x30], 0
jl 0x422521
cmp dword [esp + 0x3c], edx
jg 0x422521
cmp dword [esp + 0x34], 0
jge 0x42260b
xor ecx, ecx
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x64], edx
push ecx
lea edx, [esp + 0x9c]
push edx
call dword [sym.imp.user32.dll_IntersectRect]
mov eax, dword [esp + 0x9c]
sub eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x38]
sub edx, dword [esp + 0x30]
mov dword [esp + 0x54], eax
fild dword [esp + 0x54]
sub ecx, edi
mov dword [esp + 0x54], ecx
fild dword [esp + 0x54]
mov dword [esp + 0x54], edx
fmulp st(1)
fild dword [esp + 0x54]
fdivp st(1)
call fcn.005a3c30
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x3c]
sub edx, dword [esp + 0x34]
mov esi, eax
mov eax, dword [esp + 0xa0]
sub eax, dword [esp + 0x98]
add esi, edi
mov dword [esp + 0x54], eax
fild dword [esp + 0x54]
mov dword [esp + 0x54], ecx
fild dword [esp + 0x54]
mov dword [esp + 0x54], edx
mov dword [esp + 0x28], esi
fmulp st(1)
fild dword [esp + 0x54]
fdivp st(1)
call fcn.005a3c30
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0xa0]
mov edi, eax
add edi, dword [esp + 0x24]
mov eax, dword [esp + 0x94]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
jmp 0x422613
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
cmp eax, 0xc8
mov dword [esp + 0x7c], eax
jl 0x422757
mov eax, edi
sub eax, dword [esp + 0x24]
cmp eax, 0xc8
jl 0x422757
cdq
and edx, 7
add eax, edx
sar eax, 3
lea edx, [eax*8]
sub edx, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x7c]
sub edi, edx
sub edi, dword [esp + 0x24]
cdq
and edx, 7
add eax, edx
mov dword [esp + 0x6c], edi
mov edi, eax
sar edi, 3
lea eax, [edi*8]
sub eax, edi
mov edx, eax
mov eax, dword [esp + 0x3c]
sub eax, edx
sub eax, dword [esp + 0x34]
mov dword [esp + 0x18], 0
mov dword [esp + 0x54], eax
mov dword [esp + 0x7c], edi
mov dword [esp + 0x64], 7
jmp 0x4226a8
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x54c]
push 0xcc0020
push 0
lea eax, [esp + 0x12c]
push eax
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x88]
push edx
mov edx, dword [esp + 0x40]
push edi
sub ecx, edx
push ecx
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x44]
sub esi, eax
push esi
add ecx, edx
push ecx
push eax
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.gdi32.dll_StretchDIBits]
mov ecx, dword [esp + 0x14]
add dword [esp + 0x7c], edi
add dword [esp + 0x18], ecx
sub dword [esp + 0x64], 1
jne 0x4226a0
mov eax, dword [esp + 0x54c]
mov ecx, dword [esp + 0x54]
push 0xcc0020
push 0
lea edx, [esp + 0x12c]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x48]
sub edx, eax
push edx
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0x40]
push ecx
sub edx, eax
push edx
mov edx, dword [esp + 0x54]
sub edx, ecx
push edx
push eax
mov eax, dword [ebx + 4]
push eax
jmp 0x422797
mov eax, dword [esp + 0x54c]
push 0xcc0020
push 0
lea edx, [esp + 0x12c]
push edx
mov edx, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0x40]
push edx
mov edx, dword [ebx + 4]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x44]
sub edi, eax
push edi
sub esi, ecx
push esi
push eax
push ecx
push edx
call dword [sym.imp.gdi32.dll_StretchDIBits]
lea ecx, [esp + 0x104]
mov dword [esp + 0x600], 0xffffffff
call fcn.004e32f0
cmp dword [0x69eed0], 0
je 0x42288d
push 0
push 4
push 0
lea ecx, [esp + 0x88]
call fcn.0056fe7e
mov dword [esp + 0x600], 5
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], vtable.CBrush.0
push 5
mov byte [esp + 0x604], 6
call dword [sym.imp.gdi32.dll_GetStockObject]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x7c]
push eax
mov ecx, ebx
call fcn.0056fdc2
lea ecx, [esp + 0x6c]
push ecx
mov ecx, ebx
mov esi, eax
call fcn.0056fdc2
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0xa8]
push edx
mov edx, dword [esp + 0xa8]
mov edi, eax
mov eax, dword [esp + 0xb0]
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push eax
call dword [sym.imp.gdi32.dll_Rectangle]
push edi
mov ecx, ebx
call fcn.0056fdc2
push esi
mov ecx, ebx
call fcn.0056fdc2
mov byte [esp + 0x600], 5
lea ecx, [esp + 0x6c]
mov dword [esp + 0x6c], vtable.CBrush.0
call fcn.00423d70
mov dword [esp + 0x600], 0xffffffff
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], vtable.CPen.0
call fcn.00423d70
cmp dword [esp + 0x68], 0
je 0x4228a2
mov ecx, dword [esp + 0x40]
push 1
push ecx
mov ecx, ebx
call fcn.0056fe08
mov edx, dword [esp + 0x1c]
push edx
call fcn.0055dbfb
add esp, 4
mov ecx, dword [esp + 0x5f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5b0]
xor ecx, esp
call fcn.0059e0c2
mov esp, ebp
pop ebp
ret 8