Function at 0x409950
Capabilities:
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5863d2
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x5effd4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x23c], ecx
mov eax, dword [ebp - 0x23c]
cmp dword [eax + 0xcc], 0
je 0x40999d
mov ecx, dword [ebp - 0x23c]
call fcn.0040a220
push 8
call fcn.00414fbd
add esp, 4
mov dword [ebp - 0x248], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x248], 0
je 0x4099d0
mov ecx, dword [ebp - 0x248]
call fcn.00404fe0
mov dword [ebp - 0x24c], eax
jmp 0x4099da
mov dword [ebp - 0x24c], 0
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x254], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 0x254]
mov dword [edx + 0xe8], eax
mov ecx, dword [ebp - 0x23c]
mov dword [ecx + 0xcc], 0
push 0x208
push 0
lea edx, [ebp - 0x218]
push edx
call fcn.0055ed40
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x218]
add ecx, 0xfffffffe
mov dword [ebp - 0x240], ecx
mov edx, dword [ebp - 0x240]
mov ax, word [edx + 2]
mov word [ebp - 0x242], ax
add dword [ebp - 0x240], 2
cmp word [ebp - 0x242], 0
jne 0x409a46
mov edi, dword [ebp - 0x240]
mov ecx, 0xd
mov esi, 0x5cb650
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x23c]
mov ecx, dword [edx + 0xe8]
call fcn.00405010
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
jne 0x409ac4
push 0
push 0
push str.SDK_
mov ecx, dword [ebp - 0x23c]
call fcn.0041b53b
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
call fcn.00401e50
mov eax, dword [ebp - 0x23c]
mov ecx, dword [eax + 0xe8]
cmp dword [ecx], 0
je 0x409afd
push 0x5cb698
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 0xe8]
mov ecx, dword [eax]
call ecx
mov edx, dword [ebp - 0x23c]
mov dword [edx + 0xec], eax
jmp 0x409b20
push 0
push 0
push str.SDK__
mov ecx, dword [ebp - 0x23c]
call fcn.0041b53b
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x23c]
cmp dword [eax + 0xec], 0
je 0x409be4
push 0x282
push 0x250
push 0x1d1
push 0x133
lea ecx, [ebp - 0x238]
call fcn.0040c000
mov ecx, dword [eax]
mov dword [ebp - 0x228], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x224], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x220], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x21c], edx
mov eax, dword [ebp - 0x23c]
mov ecx, dword [eax + 0xec]
mov edx, dword [ebp - 0x23c]
mov eax, dword [ecx]
mov ecx, dword [edx + 0xec]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x250], eax
push 0x409c20
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp - 0x228]
mov dword [eax], ecx
mov edx, dword [ebp - 0x224]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x220]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x21c]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x23c]
mov ecx, dword [eax + 0x20]
push ecx
mov edx, dword [ebp - 0x250]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x250]
mov edx, dword [eax]
call edx
jmp 0x409bfb
push 0
push str.error
push str.SDK___
mov ecx, dword [ebp - 0x23c]
call fcn.0041b53b
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.0055c24d
mov esp, ebp
pop ebp
ret