Function at 0x415930
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 0x415f7f
jmp 0x41599a
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0x18]
sub edx, dword [eax + 0x14]
sar edx, 2
cmp ecx, edx
jae 0x4159b3
mov edx, dword [eax + 0x14]
mov edx, dword [edx + ecx*4]
mov dword [esp + 0x1c], edx
jmp 0x4159b7
mov dword [esp + 0x1c], ebx
mov edx, dword [eax + 0x28]
sub edx, dword [eax + 0x24]
sar edx, 2
cmp ecx, edx
jae 0x4159d0
mov edx, dword [eax + 0x24]
mov edx, dword [edx + ecx*4]
mov dword [esp + 0x28], edx
jmp 0x4159d4
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 0x415a55
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 0x415a4a
lea ecx, [esp + 0x7c]
push ecx
call eax
jmp 0x415a55
lea edx, [esp + 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [esp + 0x7c]
cmp ax, 9
je 0x415a6e
mov dword [esp + 0x3c], 0x4320d0
cmp ax, 6
jne 0x415a76
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 0x415aa9
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 0x415aad
mov dword [esp + 0x14], ebx
push 0x66
call fcn.0041695e
add esp, 4
push ebx
mov esi, eax
push 0x4311ae
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 0x415b07
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 0x415b20
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 0x415b40
mov ax, word [0x431330]
mov word [edi], ax
mov eax, dword [esp + 0x20]
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x415b57
mov edi, dword [esp + 0x18]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x415b67
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 0x415bea
mov eax, dword [esp + 0x18]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x415b90
sub eax, edx
lea esi, [eax + 1]
cmp esi, 1
je 0x415bea
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
cmp eax, ebx
je 0x415bbc
push eax
call fcn.004176ca
mov edi, dword [esp + 0x18]
add esp, 4
mov dword [edi], ebx
jmp 0x415bc0
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 0x415be0
cmp dword [esp + 0x1c], ebx
je 0x415bff
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 0x415c08
sub eax, edx
push eax
push esi
lea ecx, [esp + 0xa8]
call fcn.00403150
cmp esi, ebx
jne 0x415cf8
lea eax, [esp + 0xbc]
push eax
call fcn.00416290
mov esi, eax
lea ecx, [esp + 0xa0]
cmp ecx, esi
je 0x415cbc
cmp dword [esp + 0xb4], 0x10
jb 0x415c5b
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 0x415c93
mov eax, dword [esi + 0x10]
inc eax
push eax
lea eax, [esp + 0xa4]
push esi
push eax
call fcn.004179a0
add esp, 0xc
jmp 0x415c9e
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 0x415cc1
mov edi, 0xf
mov byte [esp + 0xe8], 1
cmp dword [esp + 0xd0], 0x10
jb 0x415ce3
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 0x415d10
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x415d10
mov edx, dword [str._Newdd_ddd]
mov dword [eax], edx
mov ecx, dword [0x431338]
mov dword [eax + 4], ecx
mov dx, word [0x43133c]
mov word [eax + 8], dx
mov cl, byte [0x43133e]
mov byte [eax + 0xa], cl
cmp dword [esp + 0xb4], 0x10
mov eax, dword [esp + 0xa0]
jae 0x415d55
lea eax, [esp + 0xa0]
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x415d57
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 0x415d70
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 0x415d90
mov ecx, dword [str._e3df_TEE]
mov dword [eax], ecx
mov ecx, dword [0x431344]
mov dword [eax + 4], ecx
mov cx, word [0x431348]
mov word [eax + 8], cx
cmp edx, ebx
je 0x415e1d
mov eax, dword [esp + 0x18]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x415dc0
sub eax, edx
lea esi, [eax + 1]
cmp esi, 1
je 0x415e1d
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 8]
cmp eax, ebx
je 0x415dee
push eax
call fcn.004176ca
mov edi, dword [esp + 0x18]
add esp, 4
mov dword [edi + 8], ebx
jmp 0x415df2
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 0x415e13
mov eax, dword [esp + 0x14]
call fcn.00408c00
cmp eax, 1
mov eax, dword [0x43bc1c]
jne 0x415e7e
cmp eax, ebx
jne 0x415e68
push 0x168
call fcn.004177a6
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0xe8], 3
cmp eax, ebx
je 0x415e59
push eax
call fcn.00412dd0
jmp 0x415e5b
xor eax, eax
mov byte [esp + 0xe8], 1
mov dword [0x43bc1c], eax
push 0x4311cb
mov edx, 0x4311af
mov ecx, 0x4311ca
mov edi, str.m_action_del_schedtask_suc
jmp 0x415eca
cmp eax, ebx
jne 0x415eb6
push 0x168
call fcn.004177a6
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0xe8], 4
cmp eax, ebx
je 0x415ea7
push eax
call fcn.00412dd0
jmp 0x415ea9
xor eax, eax
mov byte [esp + 0xe8], 1
mov dword [0x43bc1c], eax
push 0x4311d2
mov edx, 0x4311ce
mov ecx, 0x4311cf
mov edi, str.m_action_del_schedtask_fail
push eax
call fcn.00413e60
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x415f18
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x415eeb
push eax
call fcn.004176ca
add esp, 4
mov dword [esi + 4], ebx
mov eax, dword [esi]
cmp eax, ebx
je 0x415efc
push eax
call fcn.004176ca
add esp, 4
mov dword [esi], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x415f0f
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 0x415f3f
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 0x415996
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