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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5494d3
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x579aa4]
xor eax, esp
mov dword [esp + 0x1d0], eax
push ebx
push esi
push edi
mov eax, dword [0x579aa4]
xor eax, esp
push eax
lea eax, [esp + 0x1e8]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov ebx, ecx
mov dword [eax], 0
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
mov dword [esp + 0x14], ebx
call edx
mov esi, dword [ebx + 0x64]
sub esi, dword [ebx + 0x60]
xor edi, edi
sar esi, 2
test esi, esi
jbe 0x414a2d
mov eax, dword [ebx + 0x64]
sub eax, dword [ebx + 0x60]
sar eax, 2
cmp edi, eax
jb 0x414a17
call fcn.0050dcae
mov ecx, dword [ebx + 0x60]
mov ecx, dword [ecx + edi*4]
test ecx, ecx
je 0x414a28
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
call eax
inc edi
cmp edi, esi
jb 0x414a05
mov eax, dword [ebx + 0x7c]
sub eax, dword [ebx + 0x78]
xor edi, edi
sar eax, 2
mov dword [esp + 0x28], eax
test eax, eax
jbe 0x414a7a
mov ecx, dword [ebx + 0x7c]
sub ecx, dword [ebx + 0x78]
sar ecx, 2
cmp edi, ecx
jb 0x414a52
call fcn.0050dcae
mov edx, dword [ebx + 0x78]
mov esi, dword [edx + edi*4]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x414a73
push 0
push 0
push 0x785
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
inc edi
cmp edi, dword [esp + 0x28]
jb 0x414a40
lea eax, [ebx + 0x10c]
push eax
lea eax, [esp + 0xa8]
push eax
call fcn.004171f0
xor esi, esi
mov eax, ebx
mov dword [esp + 0x1f0], esi
call fcn.004128c0
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x28]
lea ecx, [eax + eax*2]
mov eax, dword [ebx + ecx*8 + 0xcc]
lea esi, [ebx + ecx*8 + 0xbc]
mov dword [esp + 0x58], eax
cmp dword [esi + 0xc], eax
jbe 0x414ac5
call fcn.0050dcae
mov edi, dword [esi + 0xc]
mov edx, dword [esi]
mov dword [esp + 0x9c], edx
cmp edi, dword [esi + 0x10]
jbe 0x414adb
call fcn.0050dcae
mov esi, dword [esi]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edi
test esi, esi
je 0x414af2
cmp esi, dword [esp + 0x9c]
je 0x414af7
call fcn.0050dcae
cmp edi, dword [esp + 0x58]
je 0x4150c8
test esi, esi
jne 0x414bb2
call fcn.0050dcae
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x414b1a
call fcn.0050dcae
mov edi, dword [edi]
mov dword [esp + 0x24], edi
test edi, edi
je 0x414b2c
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
xor eax, eax
mov byte [esp + 0x1f0], 1
cmp edi, eax
je 0x415089
lea edx, [esp + 0x1c]
push edx
push ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, esp
mov dword [eax], edi
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [esp + 0x4c], esp
push edi
call ecx
call fcn.00410670
add esp, 8
cmp al, 1
jne 0x415070
mov edx, dword [esp + 0xbc]
mov eax, dword [edx + 4]
mov ebx, dword [esp + 0x1c]
xor ecx, ecx
mov byte [esp + 0x1b], 0
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov esi, edx
cmp byte [eax + 0x3d], cl
jne 0x414bc5
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
jne 0x414ba6
mov ecx, dword [esp + 0x20]
cmp dword [eax + 0x10], ecx
setb cl
test cl, cl
je 0x414bb9
mov eax, dword [eax + 8]
jmp 0x414bbd
mov eax, dword [esi]
jmp 0x414b10
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0x3d], 0
je 0x414b98
xor ecx, ecx
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], eax
mov edi, edx
cmp eax, ecx
jne 0x414be6
call fcn.0050dcae
mov edx, dword [esp + 0xbc]
cmp esi, edi
je 0x414c05
mov eax, dword [esi + 0xc]
cmp ebx, eax
jne 0x414bf8
mov eax, dword [esp + 0x20]
cmp eax, dword [esi + 0x10]
setb al
test al, al
jne 0x414c05
lea eax, [esp + 0x5c]
jmp 0x414c21
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x88], edx
mov dword [esp + 0x84], ecx
lea eax, [esp + 0x84]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebx, edx
test esi, esi
je 0x414c35
cmp esi, dword [esp + 0xa4]
je 0x414c3a
call fcn.0050dcae
cmp edi, ebx
je 0x414e68
test esi, esi
jne 0x414d5a
call fcn.0050dcae
cmp edi, dword [esi + 0x18]
jne 0x414c59
call fcn.0050dcae
add edi, 0x14
push edi
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.USER32.dll_CopyRect]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x414e63
lea ecx, [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0042c490
test byte [0x57ec18], 1
jne 0x414d61
push pe_nt_image_headers32
lea edx, [esp + 0xcc]
mov ebx, 0x60
push 0
mov esi, 1
or dword [0x57ec18], esi
push edx
mov dword [0x57ec1c], 0x64
mov dword [0x57ec20], ebx
mov dword [0x57ec24], ebx
mov byte [0x57ec28], 0
call fcn.0050c770
add esp, 0xc
lea eax, [esp + 0xc4]
push eax
mov dword [esp + 0xc8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xc8], 5
jne 0x414d09
cmp dword [esp + 0xcc], esi
je 0x414d61
push 0
mov byte [0x57ec28], 1
mov edi, ebx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x414d34
push 0x58
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
push 0
mov edi, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebx
push 0x64
push edi
mov dword [0x57ec24], edi
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
mov dword [0x57ec1c], esi
cmp esi, 0x64
jne 0x414d67
mov byte [0x57ec28], 0
jmp 0x414d67
mov esi, dword [esi]
jmp 0x414c4f
mov esi, dword [0x57ec1c]
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
sub edi, ecx
sub ebx, edx
cmp byte [0x57ec28], 0
je 0x414df3
cmp esi, 0x64
je 0x414da3
push 0x64
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, dword [0x57ec1c]
mov edx, dword [esp + 0x38]
mov ecx, eax
mov dword [esp + 0x34], ecx
cmp byte [0x57ec28], 0
je 0x414df3
cmp esi, 0x64
je 0x414dcb
push 0x64
push esi
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, dword [0x57ec1c]
mov ecx, dword [esp + 0x34]
mov edx, eax
mov dword [esp + 0x38], edx
cmp byte [0x57ec28], 0
je 0x414df3
cmp esi, 0x64
je 0x414df3
push 0x64
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, dword [0x57ec1c]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
jmp 0x414df5
mov eax, edi
add eax, ecx
cmp byte [0x57ec28], 0
mov dword [esp + 0x3c], eax
je 0x414e1d
cmp esi, 0x64
je 0x414e1d
push 0x64
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
jmp 0x414e1f
mov eax, ebx
mov esi, dword [esp + 0x8c]
mov edi, esi
sub edi, ecx
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x90]
add eax, edx
sub ecx, esi
sub ecx, dword [esp + 0x3c]
mov ebx, edi
add ecx, dword [esp + 0x94]
sub ebx, edx
sub edx, edi
sub edx, eax
add edx, dword [esp + 0x98]
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov byte [esp + 0x1b], 1
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebx + 0x124]
mov eax, dword [ecx + 4]
cmp byte [eax + 0x3d], 0
mov edx, dword [esp + 0x1c]
mov esi, ecx
jne 0x414ea5
mov ecx, dword [eax + 0xc]
cmp ecx, edx
jne 0x414e8f
mov ecx, dword [esp + 0x20]
cmp dword [eax + 0x10], ecx
setb cl
test cl, cl
je 0x414e9b
mov eax, dword [eax + 8]
jmp 0x414e9f
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0x3d], 0
je 0x414e81
mov eax, dword [ebx + 0x10c]
mov edi, dword [ebx + 0x124]
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], eax
test eax, eax
je 0x414ec4
cmp eax, eax
je 0x414ecd
call fcn.0050dcae
mov edx, dword [esp + 0x1c]
cmp esi, edi
je 0x414eec
mov eax, dword [esi + 0xc]
cmp edx, eax
jne 0x414edf
mov edx, dword [esp + 0x20]
cmp edx, dword [esi + 0x10]
setb al
test al, al
jne 0x414eec
lea eax, [esp + 0x7c]
jmp 0x414f04
mov eax, dword [ebx + 0x124]
mov ecx, dword [ebx + 0x10c]
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], ecx
lea eax, [esp + 0x74]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 0x124]
mov eax, dword [eax + 0x10c]
test esi, esi
je 0x414f21
cmp esi, eax
je 0x414f26
call fcn.0050dcae
cmp edi, ebx
je 0x414fa2
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x4c]
push eax
test esi, esi
je 0x414f3c
mov eax, dword [esi]
jmp 0x414f43
call fcn.0050dcae
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x414f4d
call fcn.0050dcae
mov ebx, dword [esp + 0x2c]
lea ecx, [edi + 0x14]
push ecx
push ecx
mov eax, esp
mov dword [eax], ebx
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov dword [esp + 0x54], esp
push ebx
call eax
call fcn.00412b70
test esi, esi
jne 0x414f9e
call fcn.0050dcae
cmp edi, dword [esi + 0x18]
jne 0x414f7e
call fcn.0050dcae
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x4c]
add edi, 0x24
push edi
push edx
mov eax, ebx
call fcn.0042d0e0
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
jmp 0x415085
mov esi, dword [esi]
jmp 0x414f74
cmp byte [esp + 0x1b], 1
jne 0x415070
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebx + 0x104]
mov eax, dword [ecx + 4]
cmp byte [eax + 0x3d], 0
mov edx, dword [esp + 0x1c]
mov esi, ecx
jne 0x414fea
mov ecx, dword [eax + 0xc]
cmp ecx, edx
jne 0x414fd4
mov ecx, dword [esp + 0x20]
cmp dword [eax + 0x10], ecx
setb cl
test cl, cl
je 0x414fe0
mov eax, dword [eax + 8]
jmp 0x414fe4
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0x3d], 0
je 0x414fc6
mov eax, dword [ebx + 0xec]
mov edi, dword [ebx + 0x104]
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], eax
test eax, eax
je 0x415006
cmp eax, eax
je 0x41500f
call fcn.0050dcae
mov edx, dword [esp + 0x1c]
cmp esi, edi
je 0x41502e
mov eax, dword [esi + 0xc]
cmp edx, eax
jne 0x415021
mov edx, dword [esp + 0x20]
cmp edx, dword [esi + 0x10]
setb al
test al, al
jne 0x41502e
lea eax, [esp + 0x64]
jmp 0x415046
mov eax, dword [ebx + 0x104]
mov ecx, dword [ebx + 0xec]
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], ecx
lea eax, [esp + 0x6c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 0x104]
mov eax, dword [eax + 0xec]
test esi, esi
je 0x415063
cmp esi, eax
je 0x415068
call fcn.0050dcae
cmp edi, ebx
jne 0x414f2a
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 0x4c]
mov edi, dword [esp + 0x24]
push 0
push eax
mov eax, edi
call fcn.0042d0e0
mov esi, dword [esp + 0x2c]
mov byte [esp + 0x1f0], 0
test edi, edi
je 0x41509d
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
test esi, esi
jne 0x4150c4
call fcn.0050dcae
xor eax, eax
mov ecx, dword [esp + 0x30]
cmp ecx, dword [eax + 0x10]
jb 0x4150b6
call fcn.0050dcae
add dword [esp + 0x30], 4
mov edi, dword [esp + 0x30]
jmp 0x414ae5
mov eax, dword [esi]
jmp 0x4150a8
mov eax, dword [esp + 0x28]
inc eax
cmp eax, 2
mov dword [esp + 0x28], eax
jl 0x414aa2
mov edx, dword [ebx]
mov eax, dword [edx + 0x18]
mov ecx, ebx
call eax
lea esi, [esp + 0xa4]
mov dword [esp + 0x1f0], 2
call fcn.0041a3a0
mov ecx, dword [esp + 0xa4]
push ecx
call fcn.0050c4ec
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1d0]
xor ecx, esp
call fcn.0050c75f
mov esp, ebp
pop ebp
ret 0x10