Function at 0x4152a0
Capabilities:
Check os version
Get system information on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42dd07
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x439654]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x439654]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
sub edx, dword [eax + 4]
xor ebx, ebx
sar edx, 2
xor ecx, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ecx
cmp edx, ebx
jle 0x415902
jmp 0x41530a
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0x18]
sub edx, dword [eax + 0x14]
sar edx, 2
cmp ecx, edx
jae 0x415323
mov edx, dword [eax + 0x14]
mov edx, dword [edx + ecx*4]
mov dword [esp + 0x1c], edx
jmp 0x415327
mov dword [esp + 0x1c], ebx
mov edx, dword [eax + 0x28]
sub edx, dword [eax + 0x24]
sar edx, 2
cmp ecx, edx
jae 0x415340
mov edx, dword [eax + 0x24]
mov edx, dword [edx + ecx*4]
mov dword [esp + 0x28], edx
jmp 0x415344
mov dword [esp + 0x28], ebx
mov eax, dword [eax + 4]
mov ecx, dword [eax + ecx*4]
lea edx, [esp + 0x7c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x58], ebx
test edx, edx
je 0x4153c5
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4153ba
lea ecx, [esp + 0x7c]
push ecx
call eax
jmp 0x4153c5
lea edx, [esp + 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [esp + 0x7c]
cmp ax, 9
je 0x4153de
mov dword [esp + 0x3c], 0x4320d0
cmp ax, 6
jne 0x4153e6
mov dword [esp + 0x3c], 0x4320cc
lea esi, [esp + 0x34]
call fcn.00407c30
push 0x10
mov dword [esp + 0xec], ebx
call fcn.004177a6
add esp, 4
cmp eax, ebx
je 0x415419
mov dword [eax + 0xc], 1
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax], ebx
mov dword [esp + 0x14], eax
jmp 0x41541d
mov dword [esp + 0x14], ebx
push 0x66
call fcn.0041695e
add esp, 4
push ebx
mov esi, eax
push 0x431181
lea ecx, [esp + 0xa8]
mov dword [esp + 0x20], esi
mov dword [esp + 0xbc], 0xf
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
call fcn.00403150
push 0x66
push ebx
push esi
mov byte [esp + 0xf4], 1
call fcn.0041c390
add esp, 0xc
lea ecx, [esp + 0x34]
call fcn.00408160
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x415477
mov edx, dword [esp + 0x18]
sub eax, ecx
mov esi, ecx
lea edi, [edx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x415490
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [edx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4154b0
mov ax, word [0x4312d4]
mov word [edi], ax
mov eax, dword [esp + 0x20]
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4154c7
mov edi, dword [esp + 0x18]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4154d7
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x18], ebx
je 0x41555a
mov eax, dword [esp + 0x18]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x415500
sub eax, edx
lea esi, [eax + 1]
cmp esi, 1
je 0x41555a
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
cmp eax, ebx
je 0x41552c
push eax
call fcn.004176ca
mov edi, dword [esp + 0x18]
add esp, 4
mov dword [edi], ebx
jmp 0x415530
mov edi, dword [esp + 0x14]
lea edx, [esi + 1]
push edx
call fcn.0041695e
add esp, 4
push esi
push ebx
push eax
mov dword [edi], eax
call fcn.0041c390
mov ecx, dword [esp + 0x24]
mov edx, dword [edi]
add esp, 0xc
nop
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x415550
cmp dword [esp + 0x1c], ebx
je 0x41556f
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
call fcn.00408890
xor ebx, ebx
mov esi, dword [esp + 0x28]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x415578
sub eax, edx
push eax
push esi
lea ecx, [esp + 0xa8]
call fcn.00403150
cmp esi, ebx
jne 0x415668
lea eax, [esp + 0xbc]
push eax
call fcn.00416290
mov esi, eax
lea ecx, [esp + 0xa0]
cmp ecx, esi
je 0x41562c
cmp dword [esp + 0xb4], 0x10
jb 0x4155cb
mov edx, dword [esp + 0xa0]
push edx
call fcn.004176d5
add esp, 4
mov edi, 0xf
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
cmp dword [esi + 0x14], 0x10
jae 0x415603
mov eax, dword [esi + 0x10]
inc eax
push eax
lea eax, [esp + 0xa4]
push esi
push eax
call fcn.004179a0
add esp, 0xc
jmp 0x41560e
mov ecx, dword [esi]
mov dword [esp + 0xa0], ecx
mov dword [esi], ebx
mov edx, dword [esi + 0x10]
mov dword [esp + 0xb0], edx
mov eax, dword [esi + 0x14]
mov dword [esp + 0xb4], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], bl
jmp 0x415631
mov edi, 0xf
mov byte [esp + 0xe8], 1
cmp dword [esp + 0xd0], 0x10
jb 0x415653
mov ecx, dword [esp + 0xbc]
push ecx
call fcn.004176d5
add esp, 4
mov dword [esp + 0xd0], edi
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], bl
mov esi, dword [esp + 0x18]
push 0x66
push ebx
push esi
call fcn.0041c390
add esp, 0xc
lea eax, [esi - 1]
jmp 0x415680
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x415680
mov edx, dword [0x4312d8]
mov dword [eax], edx
mov ecx, dword [0x4312dc]
mov dword [eax + 4], ecx
mov dx, word [0x4312e0]
mov word [eax + 8], dx
mov cl, byte [0x4312e2]
mov byte [eax + 0xa], cl
cmp dword [esp + 0xb4], 0x10
mov eax, dword [esp + 0xa0]
jae 0x4156c5
lea eax, [esp + 0xa0]
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4156c7
mov edx, dword [esp + 0x18]
sub eax, ecx
mov esi, ecx
lea edi, [edx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4156e0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [edx - 1]
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x415700
mov ecx, dword [0x4312e4]
mov dword [eax], ecx
mov ecx, dword [0x4312e8]
mov dword [eax + 4], ecx
mov cx, word [0x4312ec]
mov word [eax + 8], cx
cmp edx, ebx
je 0x41578d
mov eax, dword [esp + 0x18]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x415730
sub eax, edx
lea esi, [eax + 1]
cmp esi, 1
je 0x41578d
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 8]
cmp eax, ebx
je 0x41575e
push eax
call fcn.004176ca
mov edi, dword [esp + 0x18]
add esp, 4
mov dword [edi + 8], ebx
jmp 0x415762
mov edi, dword [esp + 0x14]
lea eax, [esi + 1]
push eax
call fcn.0041695e
add esp, 4
push esi
push ebx
push eax
mov dword [edi + 8], eax
call fcn.0041c390
mov ecx, dword [esp + 0x24]
mov edx, dword [edi + 8]
add esp, 0xc
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x415783
mov esi, dword [esp + 0x14]
mov eax, esi
call fcn.00408c00
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.00408900
cmp eax, 1
mov eax, dword [0x43bc1c]
jne 0x415801
cmp eax, ebx
jne 0x4157eb
push 0x168
call fcn.004177a6
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0xe8], 3
cmp eax, ebx
je 0x4157dc
push eax
call fcn.00412dd0
jmp 0x4157de
xor eax, eax
mov byte [esp + 0xe8], 1
mov dword [0x43bc1c], eax
push 0x431191
mov edx, 0x431182
mov ecx, 0x431183
mov edi, str.m_action_install_schedtask_suc
jmp 0x41584d
cmp eax, ebx
jne 0x415839
push 0x168
call fcn.004177a6
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0xe8], 4
cmp eax, ebx
je 0x41582a
push eax
call fcn.00412dd0
jmp 0x41582c
xor eax, eax
mov byte [esp + 0xe8], 1
mov dword [0x43bc1c], eax
push 0x4311ad
mov edx, 0x431192
mov ecx, 0x431193
mov edi, str.m_action_install_schedtask_fail
push eax
call fcn.00413e60
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x41589b
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x41586e
push eax
call fcn.004176ca
add esp, 4
mov dword [esi + 4], ebx
mov eax, dword [esi]
cmp eax, ebx
je 0x41587f
push eax
call fcn.004176ca
add esp, 4
mov dword [esi], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x415892
push eax
call fcn.004176ca
add esp, 4
mov dword [esi + 8], ebx
push esi
call fcn.004176d5
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004176ca
add esp, 4
cmp dword [esp + 0xb4], 0x10
jb 0x4158c2
mov edx, dword [esp + 0xa0]
push edx
call fcn.004176d5
add esp, 4
lea esi, [esp + 0x34]
mov dword [esp + 0xb4], 0xf
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
mov dword [esp + 0xe8], 0xffffffff
call fcn.004086f0
mov ecx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x24], ecx
cmp ecx, dword [esp + 0x30]
jl 0x415306
mov eax, 1
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.00417619
mov esp, ebp
pop ebp
ret 4