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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x61bcad
mov eax, dword fs:[0]
push eax
sub esp, 0x5e8
mov eax, dword [0x69e3d4]
xor eax, esp
mov dword [esp + 0x5b0], eax
push ebx
push esi
push edi
mov eax, dword [0x69e3d4]
xor eax, esp
push eax
lea eax, [esp + 0x5f8]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x7c], ecx
mov ecx, dword [eax]
mov edx, dword [ecx + 0x74]
mov dword [esp + 0x64], eax
movzx eax, word [edx + 0x1e]
movzx edx, word [edx + 0x1a]
cmp edx, eax
jge 0x422691
mov eax, edx
mov ecx, dword [ecx + 0x74]
mov edi, dword [sym.imp.gdi32.dll_GetDeviceCaps]
mov word [ecx + 0x1e], ax
mov edx, dword [ebx + 8]
push 0x58
push edx
call edi
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 8]
push 0x5a
push eax
call edi
mov ecx, dword [ebx + 8]
push 8
push ecx
mov dword [esp + 0x24], eax
call edi
mov edx, dword [ebx + 8]
push 0xa
push edx
mov dword [esp + 0x70], eax
call edi
mov ecx, dword [ebx + 4]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x8c]
push eax
push ecx
call dword [sym.imp.gdi32.dll_GetWindowExtEx]
mov eax, dword [ebx + 4]
lea edx, [esp + 0x84]
push edx
push eax
call dword [sym.imp.gdi32.dll_GetViewportExtEx]
fild dword [esp + 0x1c]
fst qword [esp + 0x6c]
fild dword [0x6a6f28]
fdiv qword [0x65d4f0]
fmulp st(1)
fadd qword [0x65d220]
call fcn.005ab4c0
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 [0x6a6f24]
fdiv qword [0x65d4f0]
fmulp st(1)
fadd qword [0x65d220]
call fcn.005ab4c0
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 [0x6a6f2c]
mov dword [esp + 0x44], eax
fdiv qword [0x65d4f0]
fmul qword [esp + 0x54]
fadd qword [0x65d220]
call fcn.005ab4c0
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
fild dword [0x6a6f30]
mov dword [esp + 0x4c], eax
fdiv qword [0x65d4f0]
fmul qword [esp + 0x6c]
fadd qword [0x65d220]
call fcn.005ab4c0
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 + 0xbe8]
test ecx, ecx
mov dword [esp + 0x50], eax
je 0x422946
mov edx, dword [esp + 0x64]
cmp dword [edx + 8], 0
je 0x422816
mov eax, dword [ebx + 4]
push eax
push ecx
mov ecx, dword [ebx + 8]
call fcn.00431430
jmp 0x423aef
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 [0x6bc8b0]
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 + 0xbe8]
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 [0x6bc8b0], eax
jmp 0x423aef
push 0x88
call fcn.005655ab
mov edi, eax
add esp, 4
test edi, edi
je 0x42296f
push 0x88
push 0
push edi
call fcn.005ab440
add esp, 0xc
mov dword [esp + 0x1c], edi
jmp 0x422977
mov dword [esp + 0x1c], 0
mov edi, dword [esp + 0x7c]
mov ecx, dword [edi + 0x54]
call fcn.0041e050
cmp dword [0x6bd364], 0
mov dword [esp + 0x14], eax
jne 0x4229b3
cmp dword [edi + 0xb20], 0
je 0x4229b3
push 0
mov ecx, eax
call fcn.0044b6c0
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.0056efb5
test eax, eax
je 0x4229ce
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x4229d0
xor eax, eax
push eax
push 0x6484d8
call fcn.0056ef6f
fld qword [0x65d498]
add esp, 8
cmp dword [edi + 0x18], 0
mov dword [esp + 0x18], eax
jne 0x422a0c
mov ecx, eax
fld qword [ecx + 0x1748]
fmul qword [0x65d4f0]
fdiv st(1)
fadd qword [0x65d220]
call fcn.005ab4c0
mov dword [edi + 0x18], eax
cmp dword [edi + 0x1c], 0
jne 0x422a34
mov edx, dword [esp + 0x18]
fld qword [edx + 0x1740]
fmul qword [0x65d4f0]
fdivrp st(1)
fadd qword [0x65d220]
call fcn.005ab4c0
mov dword [edi + 0x1c], eax
jmp 0x422a36
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_L_ConvertFromDIB
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x10]
cmp eax, 0x10
je 0x422a5d
cmp eax, 0x20
jne 0x422a74
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_L_ColorResBitmap
mov eax, dword [ebx + 4]
push 1
push eax
mov dword [esp + 0x70], 0
call dword [sym.imp.gdi32.dll_SetMapMode]
fild dword [0x6a6f28]
fld qword [0x65d4f0]
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 [0x65d220]
fadd st(3), st(0)
fxch st(3)
call fcn.005ab4c0
fild dword [0x6a6f24]
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.005ab4c0
fld qword [0x6a6f10]
fdiv qword [0x65d578]
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.005ab4c0
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.005ab4c0
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.0043b430
xor ecx, ecx
xor esi, esi
xor eax, eax
xor edx, edx
mov dword [0x6bd7f8], ecx
mov dword [0x6bd800], esi
mov dword [0x6bd808], ecx
mov dword [0x6bd810], esi
mov dword [0x6bd7f4], eax
mov dword [0x6bd804], eax
mov eax, dword [0x6bd7ec]
mov ecx, 0xf
mov esi, 0x6bd45c
lea edi, [esp + 0x584]
mov dword [0x6bd7fc], edx
mov dword [0x6bd80c], edx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax - 0xc]
test eax, eax
mov dword [esp + 0x18], edx
jne 0x422c01
mov ecx, dword [0x6bd7f0]
cmp dword [ecx - 0xc], edx
je 0x422df0
mov edx, dword [esp + 0x50]
sub edx, dword [esp + 0x48]
imul edx, dword [0x6bcaac]
test edx, edx
mov dword [esp + 0x54], edx
fild dword [esp + 0x54]
jge 0x422c22
fadd qword [0x65d230]
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 [0x65d510]
fdiv qword [esp + 0x6c]
fdivp st(1)
fadd qword [0x65d220]
fchs
call fcn.005ab4c0
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 [0x6a6f08], 0
mov esi, dword [esp + 0x28]
je 0x422c9b
mov edi, dword [esp + 0x4c]
sub edi, dword [esp + 0x44]
jmp 0x422ca1
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 [0x6bd7ec]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x422d55
mov edx, dword [0x6bd7f4]
lea ecx, [edi + edx]
push 0
push eax
lea edx, [esp + 0x1c]
push edx
mov dword [0x6bd7fc], ecx
call fcn.00420300
add esp, 0xc
mov dword [esp + 0x600], 0
mov ecx, dword [0x6bcab0]
mov eax, dword [eax]
mov edx, dword [ebx]
mov edx, dword [edx + 0x68]
or ecx, 0x410
push ecx
push 0x6bd7f4
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 0x422d38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x6bd7f4]
mov eax, dword [esp + 0x18]
add dword [0x6bd800], eax
mov esi, dword [esp + 0x28]
lea edx, [edi + ecx]
mov dword [0x6bd7fc], edx
mov eax, dword [0x6bd7f0]
cmp dword [eax - 0xc], 0
je 0x422df4
mov ecx, dword [0x6bd804]
push 0
push eax
lea edx, [esp + 0x1c]
add ecx, edi
push edx
mov dword [0x6bd80c], ecx
call fcn.00420300
add esp, 0xc
mov dword [esp + 0x600], 1
mov ecx, dword [0x6bcab4]
mov eax, dword [eax]
mov edx, dword [ebx]
mov edx, dword [edx + 0x68]
or ecx, 0x410
push ecx
push 0x6bd804
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 0x422dd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x6bd804]
mov edx, dword [esp + 0x18]
add ecx, edi
add dword [0x6bd810], edx
mov dword [0x6bd80c], ecx
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x70], eax
mov eax, dword [0x6bd810]
sub eax, dword [0x6bd7f8]
mov dword [esp + 0x6c], edx
sub eax, dword [0x6bd808]
mov dword [esp + 0x74], esi
lea edi, [ecx + eax]
add edi, dword [0x6bd800]
cmp dword [0x6a6f08], 0
mov dword [esp + 0x78], ecx
mov dword [esp + 0x40], eax
jne 0x422e6e
cmp dword [0x6a6f20], 0
je 0x422f5d
mov ecx, esi
sub ecx, edx
mov edx, dword [esp + 0x4c]
sub edx, dword [esp + 0x44]
cmp ecx, edx
jg 0x422e6a
mov ecx, dword [esp + 0x50]
sub ecx, dword [esp + 0x48]
mov eax, edi
sub eax, dword [esp + 0x70]
cmp eax, ecx
jle 0x422f5d
mov ecx, dword [esp + 0x2c]
sub esi, dword [esp + 0x20]
mov edx, dword [esp + 0x4c]
sub edx, dword [esp + 0x44]
sub ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
mov dword [esp + 0x14], esi
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x6bd800]
sub ecx, dword [0x6bd7f8]
fdiv st(1)
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov eax, dword [0x6bd810]
sub eax, dword [0x6bd808]
cmp dword [0x6a6f08], 2
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
fsubp st(1)
fild dword [esp + 0x14]
fsubp st(1)
fdiv st(1)
jge 0x422eeb
fcom st(2)
fnstsw ax
test ah, 5
jp 0x422eeb
fstp st(2)
jmp 0x422eed
fstp st(0)
fld st(1)
fmulp st(3)
fld qword [0x65d220]
fadd st(3), st(0)
fxch st(3)
call fcn.005ab4c0
fmulp st(1)
mov edi, dword [esp + 0x20]
mov esi, eax
faddp st(1)
add esi, edi
mov dword [esp + 0x28], esi
call fcn.005ab4c0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
add eax, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x6c], edi
lea edi, [eax + edx]
add edi, dword [0x6bd800]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x20]
mov eax, esi
sub eax, ecx
add eax, dword [0x6bd7f4]
mov dword [esp + 0x74], esi
mov dword [0x6bd7fc], eax
mov eax, dword [0x6bd804]
sub eax, ecx
add eax, esi
mov dword [0x6bd80c], eax
cmp dword [0x6a6ed4], 0
je 0x422fcc
mov edx, dword [esp + 0x4c]
sub edx, dword [esp + 0x44]
mov ecx, esi
sub ecx, dword [esp + 0x20]
cmp ecx, edx
jge 0x422f99
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 eax, [esp + 0x28]
push eax
call dword [sym.imp.user32.dll_OffsetRect]
mov edx, dword [esp + 0x50]
sub edx, dword [esp + 0x48]
mov ecx, edi
sub ecx, dword [esp + 0x70]
cmp ecx, edx
jge 0x422fcc
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 eax, [esp + 0x28]
push eax
call dword [sym.imp.user32.dll_OffsetRect]
mov eax, dword [0x6bd800]
sub eax, dword [0x6bd7f8]
mov esi, dword [sym.imp.user32.dll_OffsetRect]
push eax
push 0
lea ecx, [esp + 0x28]
push ecx
call esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x40], ecx
fild dword [esp + 0x40]
mov dword [esp + 0xd0], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xb0], eax
sub eax, ecx
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
sub edi, dword [esp + 0x70]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x50]
fdivp st(1)
sub ecx, dword [esp + 0x48]
mov dword [esp + 0x40], edi
mov dword [esp + 0x14], ecx
xor edx, edx
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], edx
mov edx, dword [esp + 0x20]
sub esp, 8
mov dword [esp + 0xac], edx
mov dword [esp + 0x5c], edi
fstp qword [esp + 0x9c]
fild dword [esp + 0x48]
fidiv dword [esp + 0x1c]
fstp qword [esp]
call fcn.005a9060
call fcn.005ab4c0
mov edi, dword [esp + 0x7c]
sub edi, dword [esp + 0x74]
mov edx, dword [esp + 0x54]
sub edx, dword [esp + 0x4c]
mov dword [esp + 0x48], edi
fild dword [esp + 0x48]
mov dword [esp + 0x74], edx
mov dword [esp + 0x1c], eax
fidiv dword [esp + 0x74]
fstp qword [esp]
call fcn.005a9060
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 0x423160
mov eax, dword [esp + 0x1c]
fild dword [eax + 8]
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
fimul dword [esp + 0x6c]
mov dword [esp + 0x6c], ecx
fild dword [esp + 0x6c]
fdivp st(1)
fadd qword [0x65d220]
call fcn.005ab4c0
mov edx, dword [esp + 0x64]
mov ecx, eax
mov eax, dword [edx + 0x14]
sub eax, 1
xor edx, edx
div dword [esp + 0x14]
mov dword [esp + 0x38], ecx
sub ecx, dword [esp + 0x30]
push 0
mov edi, eax
imul ecx, edi
push ecx
lea eax, [esp + 0x38]
push eax
call esi
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
push 0
imul eax, edi
neg eax
push eax
lea ecx, [esp + 0xac]
push ecx
call esi
mov edx, dword [esp + 0x20]
sub edx, dword [esp + 0x44]
add edx, dword [esp + 0x4c]
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x54]
mov dword [esp + 0x6c], eax
jge 0x423248
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 [0x65d220]
fadd st(2), st(0)
fxch st(2)
call fcn.005ab4c0
mov ecx, eax
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0x14]
sub eax, 1
xor edx, edx
div dword [esp + 0x14]
mov dword [esp + 0x3c], ecx
test edx, edx
mov dword [esp + 0x14], edx
je 0x423224
sub ecx, edi
imul ecx, edx
mov dword [esp + 0x54], ecx
mov ecx, dword [0x6bd800]
sub ecx, dword [0x6bd7f8]
fild dword [esp + 0x54]
mov dword [esp + 0x54], ecx
fild dword [esp + 0x54]
fmulp st(2)
fsubrp st(1)
faddp st(1)
call fcn.005ab4c0
neg eax
push eax
push 0
lea edx, [esp + 0x38]
push edx
call esi
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
imul eax, dword [esp + 0x14]
neg eax
push eax
push 0
lea eax, [esp + 0xac]
push eax
call esi
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x24], eax
jmp 0x42322c
mov eax, dword [esp + 0x24]
fstp st(0)
fstp st(0)
sub eax, dword [esp + 0x48]
sub edi, ecx
add edi, dword [esp + 0x40]
add eax, dword [esp + 0x50]
push edi
push 0
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x38], eax
call esi
mov edx, dword [0x6bd7ec]
cmp dword [edx - 0xc], 0
je 0x4232e3
mov eax, dword [0x6bd7f8]
sub eax, dword [0x6bd800]
add eax, dword [esp + 0xa8]
push eax
mov eax, dword [esp + 0xa8]
push eax
push 0x6bd7f4
call esi
mov ecx, dword [0x6bd7ec]
push 0
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.00420300
add esp, 0xc
mov dword [esp + 0x600], 2
mov ecx, dword [0x6bcab0]
mov eax, dword [eax]
mov edx, dword [ebx]
mov edx, dword [edx + 0x68]
or ecx, 0x10
push ecx
push 0x6bd7f4
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 0x4232e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x6bd7f0]
cmp dword [ecx - 0xc], 0
je 0x42337d
mov edx, dword [esp + 0xb0]
mov eax, dword [esp + 0xa4]
push edx
push eax
push 0x6bd804
call esi
mov edx, dword [0x6bd7f0]
mov ecx, dword [esp + 0x18]
add dword [0x6bd808], ecx
push 0
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.00420300
add esp, 0xc
mov dword [esp + 0x600], 3
mov ecx, dword [0x6bcab4]
mov eax, dword [eax]
mov edx, dword [ebx]
mov edx, dword [edx + 0x68]
or ecx, 0x10
push ecx
push 0x6bd804
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 0x42337d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [0x6a6ec8], 0
jne 0x423393
cmp dword [0x6a6ecc], 0
je 0x423627
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 [0x65d220]
fadd st(1), st(0)
fxch st(1)
call fcn.005ab4c0
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.005ab4c0
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.005655ab
mov edi, eax
add esp, 4
test edi, edi
je 0x42348f
push 0x88
push 0
push edi
call fcn.005ab440
add esp, 0xc
jmp 0x423491
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_L_CopyBitmapRect
push esi
call sub.ltkrn10n.dll_L_FreeBitmap
push esi
call fcn.005655db
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 0x423509
cmp dword [edi + 0x10], 1
jne 0x4235b9
cmp dword [0x6a6ec8], esi
je 0x423627
push edi
call sub.ltimg10n.dll_L_InvertBitmap
jmp 0x423627
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_L_GetBitmapColors
cmp eax, 1
jne 0x423627
xor esi, esi
cmp dword [esp + 0x18], esi
jle 0x4235a2
jmp 0x423550
movzx eax, byte [esp + esi*4 + 0x106]
mov edx, dword [0x6a6ecc]
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 [0x6a6ec8]
call fcn.00421080
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 0x423550
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x104]
push ecx
push edx
push 0
push edi
call sub.ltkrn10n.dll_L_PutBitmapColors
jmp 0x423627
push edi
call sub.ltkrn10n.dll_L_AccessBitmap
cmp dword [edi + 0xc], esi
mov dword [esp + 0x18], esi
jle 0x423621
xor esi, esi
cmp dword [edi + 8], esi
jle 0x423611
nop
mov eax, dword [esp + 0x18]
push esi
push eax
push edi
call sub.ltkrn10n.dll_L_GetPixelColor
mov edx, dword [0x6a6ecc]
mov ecx, eax
mov eax, dword [0x6a6ec8]
push edx
mov dword [esp + 0x58], ecx
call fcn.00421080
add esp, 4
cmp dword [esp + 0x54], eax
je 0x423609
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
push edi
call sub.ltkrn10n.dll_L_PutPixelColor
add esi, 1
cmp esi, dword [edi + 8]
jl 0x4235d0
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [edi + 0xc]
mov dword [esp + 0x18], eax
jl 0x4235c8
push edi
call sub.ltkrn10n.dll_L_ReleaseBitmap
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + 4]
push ecx
push edx
call sub.ltdis10n.dll_L_CreatePaintPalette
test eax, eax
je 0x42365f
push eax
call fcn.0057786b
test eax, eax
mov dword [esp + 0x68], eax
je 0x42365f
push 1
push eax
mov ecx, ebx
call fcn.00577997
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.00576d28
mov edx, dword [esp + 0x1c]
push edx
call sub.ltkrn10n.dll_L_ChangeToDIB
mov edi, eax
lea eax, [esp + 0x104]
push eax
call fcn.004e6580
lea ecx, [esp + 0x104]
push ecx
mov dword [esp + 0x604], 4
call fcn.004e6860
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.004b7e80
test eax, eax
je 0x423703
call fcn.004b7c10
cmp eax, 0xffffffff
je 0x423703
mov dword [esp + 0x9c], 0
call fcn.004b7c10
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.004ea620
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x128]
cmp ecx, edx
mov esi, dword [esp + 0x12c]
jg 0x423731
cmp dword [esp + 0x30], 0
jl 0x423731
cmp dword [esp + 0x3c], esi
jg 0x423731
cmp dword [esp + 0x34], 0
jge 0x42381b
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x60], edx
push ecx
lea edx, [esp + 0x9c]
push edx
mov dword [esp + 0x6c], esi
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.005ab4c0
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.005ab4c0
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 0x423823
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x64]
cmp dword [eax + 8], 0
je 0x423855
mov ecx, dword [ebx + 4]
push 4
push ecx
call dword [sym.imp.gdi32.dll_SetStretchBltMode]
mov edx, dword [ebx + 4]
push 0
push 0
push 0
push edx
call dword [sym.imp.gdi32.dll_SetBrushOrgEx]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
cmp eax, 0xc8
mov dword [esp + 0x7c], eax
jl 0x423997
mov eax, edi
sub eax, dword [esp + 0x24]
cmp eax, 0xc8
jl 0x423997
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 0x4238e8
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 0x4238e0
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 0x4239d7
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.004e6680
cmp dword [0x6a6ed0], 0
je 0x423acd
push 0
push 4
push 0
lea ecx, [esp + 0x88]
call fcn.00577a0d
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.00577951
lea ecx, [esp + 0x6c]
push ecx
mov ecx, ebx
mov esi, eax
call fcn.00577951
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.00577951
push esi
mov ecx, ebx
call fcn.00577951
mov byte [esp + 0x600], 5
lea ecx, [esp + 0x6c]
mov dword [esp + 0x6c], vtable.CBrush.0
call fcn.00424fa0
mov dword [esp + 0x600], 0xffffffff
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], vtable.CPen.0
call fcn.00424fa0
cmp dword [esp + 0x68], 0
je 0x423ae2
mov ecx, dword [esp + 0x40]
push 1
push ecx
mov ecx, ebx
call fcn.00577997
mov edx, dword [esp + 0x1c]
push edx
call fcn.005655db
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.005a58d9
mov esp, ebp
pop ebp
ret 8