Function at 0x41f300
Capabilities:
Check os version
Get common file path
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456c50
push 0x44bffc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor edi, edi
mov dword [ebp - 0xc0], edi
mov dword [ebp - 4], edi
push 0x104
call fcn.0044c0d4
add esp, 4
mov ebx, eax
mov dword [ebp - 0xc0], ebx
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [ebp - 0xb4], esi
push 0x58
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
xor ecx, ecx
cmp eax, 0x60
setle cl
mov dword [0x477444], ecx
push esi
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov dword [ebp - 0xac], 0x94
lea edx, [ebp - 0xac]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
cmp dword [ebp - 0x9c], 1
sete al
mov dword [0x477368], eax
cmp eax, edi
je 0x41f3b0
xor ecx, ecx
cmp dword [ebp - 0xa4], edi
sete cl
jmp 0x41f3b2
xor ecx, ecx
mov dword [0x477418], ecx
mov ecx, dword [ebp - 0xa8]
cmp ecx, 5
sbb edx, edx
inc edx
mov dword [0x477378], edx
cmp eax, edi
jne 0x41f3d7
cmp ecx, 4
jb 0x41fd86
push 0x80
call fcn.0044c0d4
add esp, 4
mov dword [0x477404], eax
push 0x80
push eax
push 1
mov eax, dword [0x4773fc]
push eax
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
call esi
mov dword [ebp - 0xb0], eax
cmp eax, edi
je 0x41fd86
inc eax
push eax
mov ecx, dword [0x477404]
push ecx
call fcn.0044c3bd
add esp, 8
mov dword [0x477404], eax
push 0x104
push ebx
mov edx, dword [0x477368]
neg edx
sbb edx, edx
add edx, 0x1009
push edx
mov eax, dword [0x477340]
push eax
call esi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0044c0d4
add esp, 4
mov edx, eax
mov dword [0x4773f8], edx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004421c0
test eax, eax
jne 0x41f498
push 0x30
push 0xc8
push eax
call fcn.00448b60
jmp 0x41fd86
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
call fcn.00448e70
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0044c0d4
add esp, 4
mov edx, eax
mov dword [0x4773b8], edx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push ebx
call fcn.00448e70
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0044c0d4
add esp, 4
mov edx, eax
mov dword [0x4773ac], edx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x477368]
test eax, eax
jne 0x41f5ab
mov edi, dword [0x4773b8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xe
push ecx
call fcn.0044c0d4
add esp, 4
mov edx, eax
mov dword [0x47736c], edx
mov edi, dword [0x4773b8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x45a88c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push ebx
call fcn.00448e70
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0044c0d4
mov edx, eax
mov dword [0x477398], edx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x104
call fcn.0044c0d4
add esp, 8
mov edi, eax
mov dword [0x47742c], edi
mov ecx, 0x41
xor eax, eax
rep stosd dword es:[edi], eax
push 0x104
mov ecx, dword [0x47742c]
push ecx
call fcn.0043c0a0
test eax, eax
je 0x41f636
mov edx, dword [0x47742c]
push edx
call fcn.00448e70
jmp 0x41f689
mov edi, dword [0x4773b8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [0x47742c]
mov edx, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x45a884
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x47742c]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
call fcn.0044c3bd
add esp, 8
mov dword [0x47742c], eax
push 0x104
push ebx
mov eax, dword [0x477340]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push ebx
call fcn.0044c660
mov byte [eax + 1], 0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0044c0d4
mov edx, eax
mov dword [0x4773e4], edx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x104
call fcn.0044c0d4
add esp, 0x10
mov edx, eax
mov dword [0x477400], edx
mov edi, dword [0x4773e4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x104
push ebx
mov ecx, dword [0x477400]
push ecx
push 0x45a878
push 0xfa3
call fcn.00440750
test eax, eax
je 0x41f7fe
push ebx
call fcn.00449800
push ebx
call fcn.00448b20
cmp eax, 3
je 0x41f7c0
push 0x104
push ebx
push 0x464964
push 0x45a868
push 0x1007
call fcn.00440750
test eax, eax
je 0x41f7ba
push ebx
call fcn.00448e70
mov edi, 0x45a85c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.00449800
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [0x477400]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x477400]
push ecx
call fcn.0044ca6c
add esp, 4
mov edx, dword [0x477400]
push edx
call fcn.00448e70
mov edi, dword [0x477400]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x477368]
test eax, eax
mov edi, 0x45a854
jne 0x41f834
mov edi, 0x45a84c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.00448ed0
test eax, eax
jne 0x41f883
push ebx
call fcn.0044ca6c
add esp, 4
cmp eax, 0xffffffff
jne 0x41f883
push 0x30
push 0x89
push ebx
call fcn.00448b60
jmp 0x41fd86
mov edi, 0x45a530
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0044c0d4
mov edx, eax
mov dword [0x4773bc], edx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [0x4773bc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xe
push ecx
call fcn.0044c0d4
mov edx, eax
mov dword [0x477410], edx
mov edi, dword [0x4773bc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x45a840
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [0x477400]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xe
push ecx
call fcn.0044c0d4
add esp, 0xc
mov edx, eax
mov dword [0x47735c], edx
mov edi, dword [0x477400]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x45a838
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x47735c]
push eax
call fcn.00448ed0
test eax, eax
jne 0x41f9f9
mov ecx, dword [0x47735c]
push ecx
call fcn.0044ca6c
add esp, 4
cmp eax, 0xffffffff
jne 0x41f9f9
push 0x30
push 0x89
mov edx, dword [0x47735c]
push edx
call fcn.00448b60
jmp 0x41fd86
mov edi, 0x45a530
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, dword [0x47735c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [0x477400]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xe
push ecx
call fcn.0044c0d4
add esp, 4
mov edx, eax
mov dword [0x477328], edx
mov edi, dword [0x477400]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x45a830
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x477328]
push eax
call fcn.00448ed0
test eax, eax
jne 0x41fad0
mov ecx, dword [0x477328]
push ecx
call fcn.0044ca6c
add esp, 4
cmp eax, 0xffffffff
jne 0x41fad0
push 0x30
push 0x89
mov edx, dword [0x477328]
push edx
call fcn.00448b60
jmp 0x41fd86
mov edi, 0x45a530
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, dword [0x477328]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00431e90
test eax, eax
je 0x41fd86
call fcn.00440c20
mov esi, dword [0x477368]
neg esi
sbb esi, esi
add esi, 0x1009
mov dword [ebp - 0xb8], esi
push 0
push 0x45a820
push 0xfa3
call fcn.00440930
mov edi, eax
push esi
call fcn.00440290
xor ecx, ecx
cmp eax, edi
setne cl
mov dword [0x4773c0], ecx
call fcn.0044bd80
mov dword [0x47738c], eax
test eax, eax
je 0x41fcda
call fcn.0044bcb0
mov word [0x477360], ax
xor edx, edx
mov dh, al
xor ecx, ecx
mov cl, ah
or edx, ecx
mov ax, dx
mov word [0x477360], ax
cmp ax, 0x300
mov esi, 1
jb 0x41fb8d
mov dword [0x477320], esi
cmp ax, 0x400
jb 0x41fb99
mov dword [0x47731c], esi
mov eax, dword [0x477368]
test eax, eax
je 0x41fc61
mov edi, dword [0x4773b8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
mov edx, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x45a674
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
push eax
push 3
push eax
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0xbc], esi
cmp esi, 0xffffffff
je 0x41fc50
push 0
push 0x45a810
push 0xfa3
call fcn.00440930
mov edi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
je 0x41fc3f
mov dword [0x4773c0], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004417e0
jmp 0x41fcda
mov dword [0x4773c0], 1
call fcn.004417e0
jmp 0x41fcda
push 0
push 0x45a810
push 0xfa3
call fcn.00440930
mov edi, eax
push 0x100c
call fcn.00440290
cmp eax, edi
je 0x41fc88
mov dword [0x4773c0], esi
push 0x104
push ebx
push 0x100c
mov eax, dword [0x477340]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0044c0d4
add esp, 4
mov edx, eax
mov dword [0x477430], edx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 1
mov dword [0x477350], esi
mov ecx, dword [0x47738c]
neg ecx
sbb cl, cl
and cl, 0x9e
add cl, 0x61
mov byte [0x477428], cl
mov byte [0x477354], 0xff
test ebx, ebx
je 0x41fd0f
push ebx
call fcn.0044c186
add esp, 4
mov byte [0x477140], 0
mov dword [0x477180], 0
mov dword [0x477184], esi
call fcn.00429790
push 0x477260
call fcn.0042ac20
test eax, eax
jne 0x41fd3e
mov byte [0x477260], al
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret