Function at 0x417b20
Capabilities:
Check os version
Extract resource via kernel32 functions
Get disk information
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d3b1
mov eax, dword fs:[0]
push eax
sub esp, 0x5d0
mov eax, dword [0x493014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x5a0], edi
mov esi, ecx
mov dword [ebp - 0x58c], esi
mov dword [ebp - 0x5a8], esi
mov dword [ebp - 0x5ac], esi
lea ecx, [ebp - 0x46c]
mov dword [ebp - 0x5a4], 0
call fcn.00403aa0
mov dword [ebp - 4], 1
test edi, edi
jne 0x417bce
lea ecx, [ebp - 0x46c]
call fcn.00403bb0
push eax
call fcn.00404030
add esp, 4
mov ecx, esi
push eax
call fcn.00404040
mov byte [ebp - 0x594], 0
lea eax, [ebp - 0x46c]
push dword [ebp - 0x594]
push eax
call fcn.00404030
add esp, 4
mov ecx, esi
push eax
call fcn.00403ed0
jmp 0x4181f4
push str.Kernel32.dll
lea ecx, [ebp - 0x5dc]
call fcn.00403a50
mov byte [ebp - 4], 2
lea eax, [ebp - 0x5dc]
push eax
call fcn.00421920
mov ecx, eax
call fcn.004219e0
mov edi, eax
mov dword [ebp - 0x590], edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5dc]
call fcn.004039b0
push str.Psapi.dll
lea ecx, [ebp - 0x5c4]
call fcn.00403a50
mov byte [ebp - 4], 3
lea eax, [ebp - 0x5c4]
push eax
call fcn.00421920
mov ecx, eax
call fcn.004219e0
mov dword [ebp - 0x59c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c4]
call fcn.004039b0
cmp dword [ebp - 0x59c], 0
je 0x4181b4
test edi, edi
je 0x4181b4
push pe_nt_image_headers32
lea eax, [ebp - 0x584]
push 0
push eax
call fcn.0044bf20
add esp, 0xc
mov dword [ebp - 0x588], 0x11c
lea eax, [ebp - 0x588]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x417d7e
cmp dword [ebp - 0x584], 6
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
ja 0x417cb4
jne 0x417d35
cmp dword [ebp - 0x580], 2
jb 0x417d35
push str.kernel32.dll
call edi
mov esi, eax
test esi, esi
je 0x417d35
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x417d35
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x417d35
movups xmm0, xmmword [0x4823c8]
push eax
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [0x4823d8]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x417d35
lea eax, [ebp - 0x30]
push eax
lea ecx, [esi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x417d35
cmp word [esi + 2], ax
jbe 0x417d35
movzx edx, word [esi + 0x32]
movzx ecx, word [esi + 0x30]
movzx eax, word [esi + 0x36]
mov dword [ebp - 0x584], edx
mov dword [ebp - 0x580], ecx
mov dword [ebp - 0x57c], eax
push str.ntdll.dll
call edi
push str.RtlGetVersion
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov esi, eax
test esi, esi
je 0x417d78
push pe_nt_image_headers32
lea eax, [ebp - 0x14c]
push 0
push eax
call fcn.0044bf20
add esp, 0xc
mov dword [ebp - 0x150], 0x11c
lea eax, [ebp - 0x150]
push eax
call esi
mov edi, dword [ebp - 0x590]
cmp dword [ebp - 0x584], 6
jb 0x417e23
push str.QueryFullProcessImageNameW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x417e23
push 0x412
lea eax, [ebp - 0x444]
push 0
push eax
call fcn.0044bf20
add esp, 0xc
mov dword [ebp - 0x448], 0x208
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x444]
push eax
push 0
push dword [ebp - 0x5a0]
call esi
test eax, eax
je 0x417e23
mov eax, dword [ebp - 0x448]
cmp eax, 0x208
jae 0x417e01
add eax, eax
cmp eax, 0x412
jae 0x41822a
xor ecx, ecx
mov word [ebp + eax - 0x444], cx
lea eax, [ebp - 0x444]
push eax
call fcn.00403fd0
add esp, 4
lea ecx, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.00403ce0
lea ecx, [ebp - 0x46c]
call fcn.00403bb0
lea edi, [eax + 0x10]
mov eax, dword [edi]
mov dword [ebp - 0x594], edi
test eax, eax
jne 0x41816b
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetProcessImageFileNameW
push dword [ebp - 0x59c]
call eax
mov esi, eax
test esi, esi
jne 0x417e70
push str.GetProcessImageFileNameW
push dword [ebp - 0x590]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x417ede
push 0x412
lea eax, [ebp - 0x444]
push 0
push eax
call fcn.0044bf20
add esp, 0xc
lea eax, [ebp - 0x444]
push 0x208
push eax
push dword [ebp - 0x5a0]
call esi
lea ecx, [eax - 1]
cmp ecx, 0x206
ja 0x417ede
add eax, eax
cmp eax, 0x412
jae 0x41822a
xor ecx, ecx
mov word [ebp + eax - 0x444], cx
lea eax, [ebp - 0x444]
push eax
call fcn.00403fd0
add esp, 4
lea ecx, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.00403ce0
mov eax, dword [edi]
test eax, eax
je 0x4180cf
push 0x410
call fcn.00435935
push 0x410
mov edi, eax
push 0
push edi
call fcn.0044bf20
xorps xmm0, xmm0
mov dword [ebp - 0x44c], 0
movq qword [ebp - 0x454], xmm0
add esp, 0x10
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x454]
call fcn.00421790
mov esi, dword [ebp - 0x454]
xor ecx, ecx
mov dword [ebp - 0x598], ecx
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x450]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4180a7
xor eax, eax
mov dword [ebp - 0x448], eax
nop dword [eax + eax]
add esi, eax
mov ecx, esi
mov dword [ebp - 0x5a8], esi
call fcn.00403bb0
mov eax, dword [eax + 0x10]
cmp eax, 3
jb 0x417fbe
mov ecx, esi
call fcn.00403bb0
mov ecx, eax
mov edx, dword [eax + 0x14]
cmp edx, 8
jb 0x417faa
mov ecx, dword [eax]
cmp word [ecx + 4], 0x5c
jne 0x417fbe
cmp edx, 8
jb 0x417fb8
mov eax, dword [eax]
xor ecx, ecx
mov word [eax + 4], cx
push 0x208
push edi
mov ecx, esi
call fcn.00403970
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x417fd9
mov word [edi], ax
mov esi, edi
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x417fe0
sub esi, ecx
sar esi, 1
je 0x418015
mov eax, dword [ebp - 0x594]
cmp esi, dword [eax]
jae 0x418015
push esi
push edi
lea ecx, [ebp - 0x46c]
call fcn.00403970
push eax
call fcn.004520c1
add esp, 0xc
test eax, eax
je 0x418054
mov ecx, dword [ebp - 0x450]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x454]
sub ecx, esi
inc dword [ebp - 0x598]
add dword [ebp - 0x448], 0x18
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x598], eax
jae 0x4180a7
mov eax, dword [ebp - 0x448]
jmp 0x417f80
lea ecx, [ebp - 0x28]
call fcn.00403aa0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x46c]
call fcn.00403970
mov ecx, dword [ebp - 0x5a8]
lea eax, [eax + esi*2]
push eax
call fcn.00403970
push eax
lea eax, [ebp - 0x28]
push str._s_s
push eax
call fcn.00414cf0
add esp, 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x46c]
push eax
call fcn.00418340
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.004039b0
push edi
call fcn.00435735
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x454]
call fcn.004098c0
mov ecx, dword [ebp - 0x594]
mov eax, dword [ecx]
test eax, eax
jne 0x41816b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetModuleFileNameExW
push dword [ebp - 0x59c]
call edi
mov esi, eax
test esi, esi
jne 0x4180fb
push str.GetModuleFileNameExW
push dword [ebp - 0x590]
call edi
mov esi, eax
test esi, esi
je 0x41816b
push 0x412
lea eax, [ebp - 0x444]
push 0
push eax
call fcn.0044bf20
add esp, 0xc
lea eax, [ebp - 0x444]
push 0x208
push eax
push 0
push dword [ebp - 0x5a0]
call esi
lea ecx, [eax - 1]
cmp ecx, 0x206
ja 0x41816b
add eax, eax
cmp eax, 0x412
jae 0x41822a
xor ecx, ecx
mov word [ebp + eax - 0x444], cx
lea eax, [ebp - 0x444]
push eax
call fcn.00403fd0
add esp, 4
lea ecx, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.00403ce0
lea edx, [ebp - 0x46c]
lea ecx, [ebp - 0x5c4]
call fcn.00416e40
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x46c]
push eax
call fcn.00403a10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c4]
call fcn.004039b0
lea ecx, [ebp - 0x46c]
call fcn.00403bb0
push eax
call fcn.00404030
mov esi, dword [ebp - 0x58c]
jmp 0x4181c5
lea ecx, [ebp - 0x46c]
call fcn.00403bb0
push eax
call fcn.00404030
add esp, 4
mov ecx, esi
push eax
call fcn.00404040
mov byte [ebp - 0x58c], 0
lea eax, [ebp - 0x46c]
push dword [ebp - 0x58c]
push eax
call fcn.00404030
add esp, 4
mov ecx, esi
push eax
call fcn.00403ed0
mov dword [ebp - 0x5a4], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x46c]
call fcn.004039b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00434f3f
mov esp, ebp
pop ebp
ret
call fcn.0043585b
int3