Function at 0x401e30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x534c08
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x584460]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x584460]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x20]
xor esi, esi
push eax
push ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call dword [sym.imp.USER32.dll_GetClientRect]
cmp ebx, esi
jne 0x401e95
xor eax, eax
jmp 0x401e98
mov eax, dword [ebx + 4]
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], esi
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
push 2
push esi
mov dword [esp + 0x48], 0
call dword [sym.imp.gdiplus.dll_GdipSetInterpolationMode]
test eax, eax
je 0x401ecd
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0xb0]
test eax, eax
jne 0x402076
mov eax, dword [edi + 0x74]
cmp eax, 3
jne 0x401f33
cmp dword [edi + 0x84], 0
je 0x401eff
mov eax, dword [edi + 0xa8]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
call fcn.004279e8
mov edi, dword [edi + 0x90]
test edi, edi
je 0x40259e
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
push eax
push ecx
push 0
push 0
push edx
push esi
call dword [sym.imp.gdiplus.dll_GdipDrawImageRectI]
jmp 0x40259e
cmp eax, 1
je 0x402026
test eax, eax
je 0x402026
cmp eax, 2
jne 0x401f8e
cmp dword [edi + 0x84], 0
je 0x401f65
mov edx, dword [edi + 0xa0]
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call fcn.004279e8
mov edi, dword [edi + 0x8c]
test edi, edi
je 0x40259e
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
sub edx, dword [esp + 0x20]
push ecx
push edx
push 0
push 0
jmp 0x402594
cmp eax, 4
jne 0x401fd8
cmp dword [edi + 0x84], 0
je 0x401faf
mov eax, dword [edi + 0xa4]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
call fcn.004279e8
mov edi, dword [edi + 0x94]
test edi, edi
je 0x40259e
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
push edx
push eax
push 0
push 0
jmp 0x402594
cmp eax, 5
jne 0x40259e
cmp dword [edi + 0x84], 0
je 0x401ffd
mov ecx, dword [edi + 0xac]
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, ebx
call fcn.004279e8
mov edi, dword [edi + 0x98]
test edi, edi
je 0x40259e
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
push eax
push ecx
push 0
push 0
jmp 0x402594
cmp dword [edi + 0x84], 0
je 0x402042
mov edx, dword [edi + 0x9c]
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call fcn.004279e8
mov edi, dword [edi + 0x88]
test edi, edi
je 0x40259e
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
push eax
push ecx
push 0
push 0
push edx
push esi
call dword [sym.imp.gdiplus.dll_GdipDrawImageRectI]
jmp 0x40259e
cmp eax, 1
jne 0x402201
mov eax, dword [edi + 0x74]
cmp eax, 3
jne 0x4020ae
cmp dword [edi + 0x84], 0
je 0x4020a3
mov ecx, dword [edi + 0xa8]
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, ebx
call fcn.004279e8
mov edi, dword [edi + 0x90]
jmp 0x4021cb
cmp eax, 1
je 0x4021a9
test eax, eax
je 0x4021a9
cmp eax, 2
jne 0x40211c
cmp dword [edi + 0x84], 0
je 0x4020e0
mov eax, dword [edi + 0xa0]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
call fcn.004279e8
mov edi, dword [edi + 0x8c]
test edi, edi
je 0x40259e
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x38]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, edi
mov eax, ebx
call fcn.00402610
jmp 0x40259e
cmp eax, 4
jne 0x402148
cmp dword [edi + 0x84], 0
je 0x40213d
mov edx, dword [edi + 0xa4]
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call fcn.004279e8
mov edi, dword [edi + 0x94]
jmp 0x4021cb
cmp eax, 5
jne 0x40259e
cmp dword [edi + 0x84], 0
je 0x40216d
mov eax, dword [edi + 0xac]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
call fcn.004279e8
mov edi, dword [edi + 0x98]
test edi, edi
je 0x40259e
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x38]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, edi
mov eax, ebx
call fcn.00402610
jmp 0x40259e
cmp dword [edi + 0x84], 0
je 0x4021c5
mov edx, dword [edi + 0x9c]
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call fcn.004279e8
mov edi, dword [edi + 0x88]
test edi, edi
je 0x40259e
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, edi
mov eax, ebx
call fcn.00402610
jmp 0x40259e
cmp eax, 2
jne 0x40259e
mov eax, dword [edi + 0x74]
cmp eax, 3
jne 0x4022be
cmp dword [edi + 0x84], 0
je 0x402232
mov eax, dword [edi + 0xa8]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
call fcn.004279e8
mov ecx, dword [edi + 0x90]
test ecx, ecx
je 0x40259e
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x20]
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
call fcn.00401590
mov esi, eax
call fcn.00410220
mov ecx, dword [esp + 0x24]
shr eax, 1
sub ebx, eax
mov eax, dword [esp + 0x2c]
lea eax, [eax + ecx]
mov ecx, dword [edi + 0x90]
cdq
sub eax, edx
mov dword [esp + 0x10], ebx
mov ebx, eax
sar ebx, 1
call fcn.004015c0
mov esi, eax
call fcn.00410220
mov edi, dword [edi + 0x90]
shr eax, 1
mov ecx, edi
sub ebx, eax
call fcn.004015c0
mov esi, eax
call fcn.00410220
push eax
push ecx
mov ecx, edi
call fcn.00401590
mov esi, eax
call fcn.00410220
add esp, 4
push eax
mov eax, dword [esp + 0x18]
push ebx
push eax
jmp 0x402594
cmp eax, 1
je 0x4024f4
test eax, eax
je 0x4024f4
cmp eax, 2
jne 0x402386
cmp dword [edi + 0x84], 0
je 0x4022f4
mov ecx, dword [edi + 0xa0]
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, ebx
call fcn.004279e8
mov ecx, dword [edi + 0x8c]
test ecx, ecx
je 0x40259e
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x28]
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
call fcn.00401590
mov esi, eax
call fcn.00410220
mov ecx, dword [edi + 0x8c]
shr eax, 1
sub ebx, eax
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x2c]
mov dword [esp + 0x10], ebx
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
call fcn.004015c0
mov esi, eax
call fcn.00410220
mov ecx, dword [edi + 0x8c]
shr eax, 1
sub ebx, eax
call fcn.004015c0
mov esi, eax
call fcn.00410220
push eax
push ecx
mov ecx, dword [edi + 0x8c]
call fcn.00401590
mov esi, eax
call fcn.00410220
mov edx, dword [esp + 0x18]
add esp, 4
push eax
mov eax, dword [edi + 0x8c]
push ebx
push edx
push eax
jmp 0x402595
cmp eax, 4
jne 0x40243d
cmp dword [edi + 0x84], 0
je 0x4023ab
mov ecx, dword [edi + 0xa4]
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, ebx
call fcn.004279e8
mov ecx, dword [edi + 0x94]
test ecx, ecx
je 0x40259e
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x28]
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
call fcn.00401590
mov esi, eax
call fcn.00410220
mov ecx, dword [edi + 0x94]
shr eax, 1
sub ebx, eax
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x2c]
mov dword [esp + 0x10], ebx
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
call fcn.004015c0
mov esi, eax
call fcn.00410220
mov ecx, dword [edi + 0x94]
shr eax, 1
sub ebx, eax
call fcn.004015c0
mov esi, eax
call fcn.00410220
push eax
push ecx
mov ecx, dword [edi + 0x94]
call fcn.00401590
mov esi, eax
call fcn.00410220
mov edx, dword [esp + 0x18]
add esp, 4
push eax
mov eax, dword [edi + 0x94]
push ebx
push edx
push eax
jmp 0x402595
cmp eax, 5
jne 0x40259e
cmp dword [edi + 0x84], 0
je 0x402462
mov ecx, dword [edi + 0xac]
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, ebx
call fcn.004279e8
mov ecx, dword [edi + 0x98]
test ecx, ecx
je 0x40259e
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x28]
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
call fcn.00401590
mov esi, eax
call fcn.00410220
mov ecx, dword [edi + 0x98]
shr eax, 1
sub ebx, eax
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x2c]
mov dword [esp + 0x10], ebx
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
call fcn.004015c0
mov esi, eax
call fcn.00410220
mov ecx, dword [edi + 0x98]
shr eax, 1
sub ebx, eax
call fcn.004015c0
mov esi, eax
call fcn.00410220
push eax
push ecx
mov ecx, dword [edi + 0x98]
call fcn.00401590
mov esi, eax
call fcn.00410220
mov edx, dword [esp + 0x18]
add esp, 4
push eax
mov eax, dword [edi + 0x98]
push ebx
push edx
push eax
jmp 0x402595
cmp dword [edi + 0x84], 0
je 0x402510
mov ecx, dword [edi + 0x9c]
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, ebx
call fcn.004279e8
mov ecx, dword [edi + 0x88]
test ecx, ecx
je 0x40259e
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x28]
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
call fcn.00401590
mov esi, eax
call fcn.00410220
mov ecx, dword [edi + 0x88]
shr eax, 1
sub ebx, eax
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x2c]
mov dword [esp + 0x10], ebx
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
call fcn.004015c0
mov esi, eax
call fcn.00410220
mov edi, dword [edi + 0x88]
shr eax, 1
mov ecx, edi
sub ebx, eax
call fcn.004015c0
mov esi, eax
call fcn.00410220
push eax
push ecx
mov ecx, edi
call fcn.00401590
mov esi, eax
call fcn.00410220
mov edx, dword [esp + 0x18]
add esp, 4
push eax
push ebx
push edx
push edi
lea ecx, [esp + 0x28]
call fcn.004015f0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00511b7f
mov esp, ebp
pop ebp
ret 4