Function at 0x40d940
Capabilities:
Check os version
Create process on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4a6536
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x4d92d4]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d92d4]
xor eax, esp
push eax
lea eax, [esp + 0x15c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x170]
mov esi, ecx
lea ecx, [esp + 0xb4]
mov dword [esp + 0x30], eax
mov byte [esp + 0x16], 1
call fcn.00437cc0
mov dword [esp + 0x164], 0
push 0x600
push 0xffffffffffffffff
lea ecx, [esp + 0xbc]
call fcn.00437d10
mov ecx, dword [esi + 0x19d0]
mov bl, al
mov eax, dword [ecx + 0x14]
push 0
push eax
call fcn.00437130
add esp, 8
test eax, eax
jne 0x40db75
lea edx, [esi + 0x19cc]
push edx
lea ecx, [esp + 0x1c]
call fcn.0041d950
mov byte [esp + 0x164], 1
call fcn.00406ed0
test bl, bl
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
je 0x40da9b
test al, al
jne 0x40da36
push 0x4b3088
lea ecx, [esp + 0x1c]
call fcn.0041d9f0
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
push 0x12004
push 0x4b2c58
push eax
push 0
call edi
cmp eax, 6
sete al
test al, al
je 0x40db54
mov ecx, dword [esi + 0x19d0]
mov eax, dword [ecx + 0x14]
push eax
call fcn.00437a90
add esp, 4
test al, al
jne 0x40db59
mov edx, dword [esi + 0x19d0]
mov eax, dword [edx + 0x14]
push eax
lea ecx, [esp + 0x38]
call fcn.00405c30
mov byte [esp + 0x164], 2
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x14]
push eax
push 0x100
lea ecx, [esp + 0x20]
call fcn.0041d850
push 0x4b2fd8
lea ecx, [esp + 0x1c]
call fcn.0041d9f0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x14]
jmp 0x40db2d
test al, al
jne 0x40dad1
push 0x4b2f38
lea ecx, [esp + 0x1c]
call fcn.0041d9f0
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x14]
push 0x12004
push 0x4b2c58
push eax
push 0
call edi
cmp eax, 6
sete al
test al, al
je 0x40db54
mov eax, dword [esi + 0x19d0]
mov eax, dword [eax + 0x14]
push eax
call fcn.00437a90
add esp, 4
test al, al
jne 0x40db59
mov ecx, dword [esi + 0x19d0]
mov eax, dword [ecx + 0x14]
push eax
lea ecx, [esp + 0x38]
call fcn.00405c30
mov byte [esp + 0x164], 3
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 0x14]
push eax
push 0x100
lea ecx, [esp + 0x20]
call fcn.0041d850
push 0x4b2ee8
lea ecx, [esp + 0x1c]
call fcn.0041d9f0
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
push 0x12000
push 0x4b2c58
push eax
push 0
call edi
mov byte [esp + 0x16], 0
mov byte [esp + 0x164], 1
lea ecx, [esp + 0x34]
call fcn.00405cb0
jmp 0x40db59
mov byte [esp + 0x16], 0
mov byte [esp + 0x164], 0
lea ecx, [esp + 0x18]
call fcn.0041d940
cmp byte [esp + 0x16], 0
je 0x40e0a0
test bl, bl
je 0x40e0a0
cmp dword [esp + 0x30], 0
mov byte [esp + 0x17], 0
mov ebp, vtable.FCString.0
mov ebx, 4
je 0x40dc58
mov ecx, dword [esi + 0x19d0]
mov edi, dword [ecx + 0x14]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebp
call fcn.00439660
push edi
push 0x100
lea ecx, [esp + 0x20]
call fcn.0041d850
mov byte [esp + 0x164], bl
mov edx, dword [esp + 0x30]
push edx
lea ecx, [esp + 0x1c]
call fcn.0041d9f0
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
push 0
push eax
call fcn.00437130
add esp, 8
test eax, eax
je 0x40dc3c
lea ecx, [esp + 0x68]
call fcn.00405d90
mov byte [esp + 0x164], 5
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x14]
push 1
push 0x80
push 1
push 0x40000000
push ebx
push eax
lea ecx, [esp + 0x80]
call fcn.00437900
cmp dword [esp + 0x6c], 0xffffffff
jne 0x40dc2c
cmp eax, 5
jne 0x40dc2c
mov byte [esp + 0x17], 1
mov byte [esp + 0x164], bl
lea ecx, [esp + 0x68]
call fcn.00405e00
mov byte [esp + 0x164], 0
lea ecx, [esp + 0x18]
call fcn.0041d940
cmp byte [esp + 0x17], 0
jne 0x40dcfa
mov edx, dword [esi + 0x19d0]
mov edi, dword [edx + 0x14]
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebp
call fcn.00439660
push edi
push 0x100
lea ecx, [esp + 0x2c]
call fcn.0041d850
mov byte [esp + 0x164], 6
push str.__dummy.write.check__
lea ecx, [esp + 0x28]
call fcn.0041d9f0
lea ecx, [esp + 0x68]
call fcn.00405d90
mov byte [esp + 0x164], 7
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x14]
push 1
push 0x80
push 1
push 0x40000000
push ebx
push eax
lea ecx, [esp + 0x80]
call fcn.00437900
cmp dword [esp + 0x6c], 0xffffffff
jne 0x40dcd8
cmp eax, 5
jne 0x40dcd8
mov byte [esp + 0x17], 1
mov byte [esp + 0x164], 6
lea ecx, [esp + 0x68]
call fcn.00405e00
mov byte [esp + 0x164], 0
lea ecx, [esp + 0x24]
call fcn.0041d940
mov ecx, dword [esi + 0x19d0]
mov edi, dword [ecx + 0x14]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebp
call fcn.00439660
push edi
push 0x100
lea ecx, [esp + 0x20]
call fcn.0041d850
mov byte [esp + 0x164], 8
push str.__dummy.write.check__
lea ecx, [esp + 0x1c]
call fcn.0041d9f0
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x14]
push 0
push eax
call fcn.00437130
add esp, 8
test eax, eax
je 0x40dd63
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
push 0
push 0
push 0
push 1
push eax
call fcn.0044c6a0
add esp, 0x14
mov byte [esp + 0x164], 0
lea ecx, [esp + 0x18]
call fcn.0041d940
cmp byte [esp + 0x17], 0
je 0x40e0a0
mov edi, dword [0x4d9010]
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebp
call fcn.00439660
push edi
push 0x100
lea ecx, [esp + 0x2c]
call fcn.0041d850
mov byte [esp + 0x164], 9
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebp
call fcn.00439660
push 0
push 0x100
lea ecx, [esp + 0x20]
call fcn.0041d850
mov byte [esp + 0x164], 0xa
lea edi, [esi + 0xb40]
mov ecx, edi
call fcn.00406410
test al, al
mov ecx, edi
je 0x40ddfc
call fcn.004063e0
test al, al
lea ecx, [esp + 0x18]
je 0x40ddf5
push str.Windows_Server_2008
jmp 0x40de20
push str.Windows_VISTA
jmp 0x40de20
call fcn.00406440
test al, al
je 0x40de2a
mov ecx, edi
call fcn.004063e0
test al, al
lea ecx, [esp + 0x18]
je 0x40de1b
push str.Windows_Server_2008R2
jmp 0x40de20
push str.Windows_7
push 0x100
call fcn.0041d850
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x14]
push eax
push str._OS_
lea ecx, [esp + 0x2c]
call fcn.0041f760
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x14]
mov ecx, dword [esi + 4]
push str.ExHIBIT_UAC_Manager
push eax
push ecx
mov ecx, esi
call fcn.0040a100
mov eax, dword [esi + 0x19d0]
mov eax, dword [eax + 0x14]
push eax
lea ecx, [esp + 0x38]
call fcn.00405c30
mov byte [esp + 0x164], 0xb
push str.acmp.exe
lea ecx, [esp + 0xa8]
call fcn.00405c30
mov byte [esp + 0x164], 0xc
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], ebp
call fcn.00439660
push str.open
push 0x100
lea ecx, [esp + 0x64]
call fcn.0041d850
mov byte [esp + 0x164], 0xd
push 0x38
lea ecx, [esp + 0x70]
push 0
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [esp + 0x68], 0x3c
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x70], eax
mov eax, dword [edx + 0x14]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x84], 1
mov dword [esp + 0x6c], 0x40
mov edx, dword [ecx + 0x14]
mov dword [esp + 0x78], edx
mov ecx, dword [eax + 0x14]
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x80], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40df47
cmp dword [esp + 0x88], 0x20
jle 0x40df47
mov eax, dword [esp + 0x16c]
mov ecx, dword [esp + 0xa0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor bl, bl
jmp 0x40e021
mov edi, dword [0x4d9014]
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], ebp
call fcn.00439660
push edi
push 0x100
lea ecx, [esp + 0x4c]
call fcn.0041d850
mov byte [esp + 0x164], 0xe
push 0x4b2e48
push str._EXE_
lea ecx, [esp + 0x4c]
call fcn.0041f760
mov edx, dword [esp + 0x48]
mov eax, dword [edx + 0x14]
mov ecx, dword [esi + 4]
push str.ExHIBIT_UAC_Manager
push eax
push ecx
mov ecx, esi
call fcn.0040a100
mov byte [esp + 0x164], 0xd
lea ecx, [esp + 0x44]
call fcn.0041d940
mov edi, dword [0x4d9018]
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], ebp
call fcn.00439660
push edi
push 0x100
lea ecx, [esp + 0x58]
call fcn.0041d850
mov byte [esp + 0x164], 0xf
push 0x4b2e48
push str._EXE_
lea ecx, [esp + 0x2c]
call fcn.0041f760
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 0x14]
mov ecx, dword [esi + 4]
push str.ExHIBIT_UAC_Manager
push eax
push ecx
mov ecx, esi
call fcn.0040a1e0
test al, al
je 0x40e00a
mov bl, 1
jmp 0x40e010
xor bl, bl
mov byte [esp + 0x16], bl
mov byte [esp + 0x164], 0xd
lea ecx, [esp + 0x50]
call fcn.0041d940
mov byte [esp + 0x164], 0xc
lea ecx, [esp + 0x5c]
call fcn.0041d940
mov byte [esp + 0x164], 0xb
mov edi, vtable.FCPathName.0
mov dword [esp + 0xa4], edi
mov byte [esp + 0x164], 0xb
lea ecx, [esp + 0xa8]
call fcn.0041d940
mov byte [esp + 0x164], 0xa
mov dword [esp + 0x34], edi
mov byte [esp + 0x164], 0xa
lea ecx, [esp + 0x38]
call fcn.0041d940
test bl, bl
jne 0x40de58
mov byte [esp + 0x164], 9
lea ecx, [esp + 0x18]
call fcn.0041d940
mov byte [esp + 0x164], bl
lea ecx, [esp + 0x24]
call fcn.0041d940
mov dword [esp + 0x164], 0xffffffff
lea ecx, [esp + 0xb4]
call fcn.00437d00
mov al, byte [esp + 0x16]
mov ecx, dword [esp + 0x15c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.0041c78e
add esp, 0x154
ret 0xc