Function at 0x472330
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x523711
mov eax, dword fs:[0]
push eax
sub esp, 0x158
push ebx
push ebp
push esi
push edi
mov eax, dword [0x597f54]
xor eax, esp
push eax
lea eax, [esp + 0x16c]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x74], edi
lea ecx, [esp + 0x60]
call fcn.004397e0
lea ecx, [esp + 0x64]
call fcn.004397e0
lea eax, [edi + 0x54]
push eax
lea ecx, [edi + 0x50]
push ecx
lea ecx, [esp + 0x68]
call fcn.004397b0
movzx edx, word [edi + 0x38]
mov ebp, dword [esp + 0x17c]
xor ebx, ebx
xor esi, esi
cmp word [edi + 0x14], bx
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x50], 1
mov dword [esp + 0x4c], ebx
jne 0x4723fc
push str.Times_New_Roman
push 0x12
push 2
push esi
push esi
push esi
push esi
push esi
push esi
push 0x190
push esi
push esi
push esi
push 0x90
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
push ebp
mov dword [esp + 0x54], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x18], eax
lea eax, [esp + 0xfc]
push eax
push ebp
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [edi + 0x70]
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x134]
push eax
push ebp
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push ebp
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [edi + 0x44]
neg eax
cmp eax, dword [esp + 0x184]
mov dword [esp + 0x14], eax
jge 0x472cb5
test ebx, ebx
je 0x4724d4
mov edx, dword [esi + 0x14]
mov ecx, dword [esp + 0x18c]
shr edx, 1
not edx
and edx, 1
push edx
mov edx, dword [esp + 0x18c]
lea eax, [esp + 0x18]
push eax
push ecx
push edx
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x80]
push eax
mov eax, dword [esp + 0x1a4]
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x19c]
push ebx
push edx
mov edx, dword [esp + 0x1a0]
push eax
push ecx
push edx
push ebp
mov ecx, edi
call fcn.00471cd0
cmp dword [esp + 0x70], 0
je 0x4724c4
mov eax, dword [esp + 0x188]
cmp dword [eax], 0
jne 0x4724b8
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x18c]
mov dword [eax], edx
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
mov ebx, eax
jmp 0x472c79
cmp dword [esp + 0x50], 0
jne 0x47250d
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x188]
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x84]
push ecx
push edx
push ebp
mov ecx, edi
call fcn.00471980
cmp dword [esp + 0x78], 0
je 0x472ca0
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx]
mov edx, dword [esp + 0x30]
mov eax, dword [eax + 0xc]
push edx
mov dword [esp + 0x54], 0
call eax
mov esi, eax
test esi, esi
mov dword [esp + 0x38], esi
je 0x472cb5
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
cmp word [edi + 0x14], 0
mov dword [esp + 0x5c], eax
jne 0x4725e2
movzx eax, word [esi + 0x18]
mov edx, dword [esp + 0x190]
movsx ecx, ax
imul ecx, dword [edx]
mov eax, dword [esp + 0xfc]
lea edx, [eax + eax]
cmp ecx, edx
jle 0x4725e2
mov eax, dword [esp + 0x4c]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xc0c0c0
push ebp
mov ebx, eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [edi + 0x48]
sub edx, dword [edi + 0x4c]
mov ecx, dword [esp + 0x14]
push 4
push str.Demo
push ecx
add edx, 5
push edx
push ebp
call dword [sym.imp.GDI32.dll_TextOutA]
mov edx, dword [edi + 0x48]
mov eax, dword [esp + 0xfc]
mov ecx, dword [esp + 0x14]
sub edx, dword [edi + 0x4c]
push 4
push str.Only
add eax, ecx
push eax
add edx, 5
push edx
push ebp
call dword [sym.imp.GDI32.dll_TextOutA]
mov eax, dword [edi]
mov edx, dword [eax + 0x88]
mov ecx, edi
call edx
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetTextColor]
push ebx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [edi + 0x20]
test eax, eax
mov dword [esp + 0x40], 6
je 0x472609
mov ecx, dword [edi + 0x24]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [edi + 0x10]
test eax, eax
sete byte [esp + 0x27]
xor ebx, ebx
cmp word [ecx + 0xa4], bx
mov dword [esp + 0x20], ebx
jbe 0x472c3f
test ebx, ebx
jl 0x4726c9
movzx eax, word [ecx + 0x134]
cmp ebx, eax
jge 0x4726c9
mov edx, dword [ecx + 0x138]
lea eax, [ebx + ebx*4]
add eax, eax
add eax, eax
add eax, eax
cmp dword [edx + eax + 0x1c], 0xffffffff
jle 0x4726c9
mov esi, edx
add esi, eax
cmp byte [esp + 0x27], 0
je 0x4726a3
push ebx
call fcn.004472c0
push eax
lea ecx, [esp + 0x90]
call fcn.00474d30
lea eax, [esp + 0x8c]
push eax
lea ecx, [edi + 0x1c]
mov dword [esp + 0x178], 0
call fcn.0046ddc0
lea ecx, [esp + 0x8c]
mov dword [esp + 0x174], 0xffffffff
call fcn.00474d10
movsx eax, word [esi + 0x20]
cmp eax, 6
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
jg 0x4726bf
mov dword [esp + 0x40], 6
movsx edx, word [esi + 0x22]
mov dword [esp + 0x34], edx
jmp 0x472730
movzx eax, word [ecx + 0xac]
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x30]
push eax
call edx
mov esi, eax
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
xor ebx, ebx
call edx
test eax, eax
je 0x47270e
mov cl, byte [eax + 4]
movzx edx, cl
cmp edx, ebx
jle 0x472701
movzx ebx, cl
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
test eax, eax
jne 0x4726f4
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add ebx, 0xfffffffb
push esi
mov dword [esp + 0x40], ebx
call eax
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x34], 0x25
movzx eax, word [esp + 0x30]
cmp eax, ecx
jne 0x472c22
mov edx, dword [esp + 0x190]
mov ecx, dword [esp + 0x14]
mov esi, dword [edx]
lea eax, [esp + 0xc4]
push eax
push ebp
mov dword [esp + 0x70], ecx
mov dword [esp + 0x4c], esi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx]
mov eax, dword [esp + 0x30]
mov edx, dword [edx + 0xc]
push eax
call edx
test eax, eax
je 0x472c16
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x48], ebx
je 0x472c16
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x1c], ecx
call fcn.004b4151
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x472c8c
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x54], ebp
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x174], 1
mov dword [esp + 0x28], 0
mov byte [esp + 0x58], 0
je 0x47281a
lea esp, [esp]
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x33]
push edx
push eax
mov ecx, ebx
call fcn.00439910
add dword [esp + 0x14], esi
cmp dword [esp + 0x6c], 0
je 0x4728b7
mov cl, byte [esp + 0x2f]
add cl, 1
mov byte [esp + 0x58], cl
mov dword [esp + 0x28], 1
jmp 0x4727e0
add dword [esp + 0x14], esi
cmp dword [esp + 0x34], 0
mov dword [esp + 0x1c], 0
jle 0x4728ab
lea ecx, [ecx]
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov edi, 0x52f100
mov ecx, 1
sub ecx, dword [ebp - 4]
lea esi, [ebx + 1]
mov dword [esp + 0x18], edi
sub eax, esi
sub edi, ebp
or eax, ecx
jge 0x472860
push esi
lea ecx, [esp + 0x58]
call fcn.00401371
mov ebp, dword [esp + 0x54]
cmp edi, ebx
ja 0x47286a
add edi, ebp
mov dword [esp + 0x18], edi
mov edx, dword [esp + 0x18]
push 1
push edx
push 1
add ebx, ebp
push ebx
call fcn.004e2a5b
add esp, 0x10
test esi, esi
jl 0x472c96
cmp esi, dword [ebp - 8]
jg 0x472c96
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [esp + 0x34]
mov dword [ebp - 0xc], esi
mov byte [esi + ebp], 0
mov dword [esp + 0x1c], eax
jl 0x472830
mov edi, dword [esp + 0x74]
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x1c], ebp
cmp dword [ebx + 0x10], 0
je 0x4728cd
mov eax, dword [edi + 0x60]
cmp dword [eax + 0x158], 0
je 0x4728cd
add dword [esp + 0x14], esi
movzx ecx, byte [ebx + 4]
cmp ecx, dword [esp + 0x3c]
jne 0x472bd0
mov ecx, dword [esp + 0x34]
test ecx, ecx
mov dword [esp + 0x18], 0
jle 0x4728f9
mov eax, dword [esp + 0xd8]
imul eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
lea edx, [esi + esi]
push 0x535690
push eax
sub ebx, edx
call fcn.004e4ec0
add esp, 8
test eax, eax
setne byte [esp + 0x26]
cmp dword [esp + 0x28], 0
je 0x472955
mov ecx, dword [esp + 0x1c]
push 0x531040
push ecx
call fcn.004e4ec0
add esp, 8
test eax, eax
je 0x472955
sub eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x34]
jle 0x472955
mov eax, esi
cdq
and edx, 3
add eax, edx
mov edx, esi
sar eax, 2
neg edx
sub edx, eax
add ebx, edx
mov ecx, dword [esp + 0xc4]
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
neg esi
sub esi, eax
add ebx, esi
cmp dword [esp + 0x28], 0
jne 0x472983
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
neg eax
add ebx, eax
add ebx, ecx
cmp byte [esp + 0x26], 0
je 0x4729b0
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
neg eax
add ebx, eax
cmp dword [esp + 0x28], 0
jne 0x4729a7
lea eax, [ecx + ecx*2]
jmp 0x4729b3
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
jmp 0x4729bc
lea eax, [ecx + ecx*4]
cdq
and edx, 3
add eax, edx
sar eax, 2
add ebx, eax
mov eax, dword [0x599ed0]
push 0x2e8
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov ecx, dword [esp + 0x3c]
cmp dword [esp + 0x40], ecx
mov esi, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], ebx
jle 0x4729f9
mov eax, dword [esp + 0x40]
sub eax, ecx
imul eax, dword [esp + 0xc4]
add eax, ebx
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x20]
test ecx, ecx
mov eax, dword [edi + 0x10]
jl 0x472a6d
movzx edx, word [eax + 0x134]
cmp ecx, edx
jge 0x472a6d
mov eax, dword [eax + 0x138]
lea edx, [ecx + ecx*4]
cmp dword [eax + edx*8 + 0x1c], 0xffffffff
jle 0x472a6d
mov eax, dword [edi + 0x20]
test eax, eax
je 0x472a42
mov esi, dword [edi + 0x24]
sub esi, eax
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jb 0x472a4b
call fcn.004e2d91
mov ecx, dword [esp + 0x20]
mov eax, dword [edi + 0x20]
lea edx, [ecx*8]
sub edx, ecx
mov eax, dword [eax + edx*4 + 0x10]
lea eax, [eax + eax*2]
cdq
and edx, 3
add eax, edx
mov esi, eax
sar esi, 2
add esi, dword [esp + 0x18]
mov eax, dword [edi + 0x48]
sub eax, dword [edi + 0x4c]
mov ecx, dword [esp + 0x18]
add esi, eax
add eax, ecx
lea edx, [esp + 0x7c]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov edx, dword [esp + 0x17c]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [edi + 8]
push 0
push eax
call dword [sym.imp.USER32.dll_GetScrollPos]
cmp dword [esp + 0x20], 0
jne 0x472b37
mov ecx, dword [esp + 0x1c]
push 0x7d
push 0x7d
push ecx
lea ecx, [esp + 0xb4]
call fcn.00474d90
fld1
push 1
push ecx
mov ecx, dword [esp + 0x30]
fstp dword [esp]
push 0
lea edx, [esp + 0x88]
push edx
mov edx, dword [esp + 0x18c]
lea eax, [esp + 0xb8]
push eax
push ecx
push esi
push edx
mov byte [esp + 0x194], 2
call fcn.004752d0
add esp, 0x20
lea ecx, [esp + 0xa8]
mov byte [esp + 0x174], 1
call fcn.00474d10
mov esi, dword [esp + 0x20]
test esi, esi
mov eax, dword [edi + 0x10]
jl 0x472bbd
movzx ecx, word [eax + 0x134]
cmp esi, ecx
jge 0x472bbd
mov eax, dword [eax + 0x138]
lea edx, [esi + esi*4]
cmp dword [eax + edx*8 + 0x1c], 0xffffffff
jle 0x472bbd
mov eax, dword [edi + 0x20]
test eax, eax
je 0x472b80
mov ecx, dword [edi + 0x24]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x472b85
call fcn.004e2d91
fld1
mov eax, dword [edi + 0x20]
push 0
push ecx
fstp dword [esp]
push 0
lea ecx, [esp + 0x88]
push ecx
lea edx, [esi*8]
sub edx, esi
lea ecx, [eax + edx*4]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18c]
push ecx
push ebx
push edx
push eax
call fcn.004752d0
add esp, 0x20
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
add ebp, 0xfffffff0
mov dword [esp + 0x174], 0xffffffff
lea edx, [ebp + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x472bf8
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x48], eax
jne 0x47278f
mov ebp, dword [esp + 0x17c]
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + 0x10]
movzx edx, word [ecx + 0xa4]
add ebx, 1
cmp ebx, edx
mov dword [esp + 0x20], ebx
jl 0x472626
mov esi, dword [esp + 0x38]
mov eax, dword [edi + 0x48]
mov ebx, dword [esp + 0x14]
sub eax, dword [edi + 0x4c]
push 0
push ebx
push eax
push ebp
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, edi
call fcn.00465eb0
push eax
push esi
mov ecx, edi
call fcn.00465f00
mov ecx, dword [edi + 0x48]
sub ecx, dword [edi + 0x4c]
add eax, ebx
push eax
push ecx
push ebp
call dword [sym.imp.GDI32.dll_LineTo]
mov ebx, dword [esp + 0x5c]
mov edx, dword [esp + 0x184]
cmp dword [esp + 0x14], edx
jl 0x472445
jmp 0x472ca4
push 0x80004005
call fcn.004010bd
push 0x80070057
call fcn.004010bd
mov esi, dword [esp + 0x38]
test esi, esi
je 0x472cb5
mov edi, dword [edi + 0xc]
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
push esi
mov ecx, edi
call edx
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x472cc4
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x16c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret 0x18