Function at 0x4fa9ec
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
test dl, dl
je 0x4fa9ff
add esp, 0xfffffff0
call fcn.00408490
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4faee7
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.00407dec
cmp dword [0x50e6c8], 0
jne 0x4faa29
mov dword [0x50e6c8], esi
mov byte [esi + 4], 1
lea eax, [esi + 8]
call fcn.00409c14
lea eax, [esi + 0xc]
call fcn.00409c14
lea eax, [esi + 0x10]
call fcn.00409c14
mov byte [esi + 0x14], 0
mov byte [esi + 0x15], 1
mov byte [esi + 0x16], 0
mov byte [esi + 0x17], 0
mov byte [esi + 0x18], 0
lea eax, [esi + 0x1c]
call fcn.00409c14
lea eax, [esi + 0x20]
call fcn.00409c14
lea eax, [esi + 0x24]
call fcn.00409c14
mov byte [esi + 0x28], 0
mov byte [esi + 0x29], 0
lea eax, [esi + 0x2c]
call fcn.00409c14
lea eax, [esi + 0x30]
call fcn.00409c14
lea eax, [esi + 0x34]
call fcn.00409c14
lea eax, [esi + 0x38]
call fcn.00409c14
mov dword [esi + 0x3c], 0x63
lea eax, [esi + 0x40]
call fcn.00409c14
lea eax, [esi + 0x44]
call fcn.00409c14
lea eax, [esi + 0x48]
call fcn.00409c14
mov byte [esi + 0x4c], 0
xor eax, eax
mov dword [esi + 0x50], eax
xor eax, eax
mov dword [esi + 0x54], eax
mov byte [esi + 0x58], 0
xor eax, eax
mov dword [esi + 0x5c], eax
lea eax, [esi + 0x60]
call fcn.00409c14
lea eax, [esi + 0x64]
call fcn.00409c14
mov byte [esi + 0x68], 0
lea eax, [esi + 0x6c]
call fcn.00409c14
mov byte [esi + 0x70], 0
mov byte [esi + 0x71], 1
mov byte [esi + 0x72], 0
mov byte [esi + 0x73], 0
mov byte [esi + 0x74], 0
mov byte [esi + 0x75], 0
lea eax, [esi + 0x78]
call fcn.00409c14
lea eax, [esi + 0x7c]
call fcn.00409c14
lea eax, [esi + 0x80]
call fcn.00409c14
lea eax, [esi + 0x84]
call fcn.00409c14
lea eax, [esi + 0x88]
call fcn.00409c14
lea eax, [esi + 0x8c]
call fcn.00409c14
lea eax, [esi + 0x90]
call fcn.00409c14
xor eax, eax
mov dword [esi + 0x94], eax
mov byte [esi + 0x98], 0
mov byte [esi + 0x99], 0
mov byte [esi + 0x9a], 0
mov byte [esi + 0x9b], 0
mov byte [esi + 0x9c], 0
mov byte [esi + 0x9d], 0
mov byte [esi + 0x9e], 0
mov byte [esi + 0x9f], 0
mov byte [esi + 0xa0], 0
xor eax, eax
mov dword [esi + 0xa4], eax
mov byte [esi + 0xa8], 0
mov byte [esi + 0xa9], 0
mov byte [esi + 0xaa], 0
mov byte [esi + 0xab], 0
mov byte [esi + 0xac], 0
lea eax, [esi + 0xb0]
call fcn.00409c14
mov byte [esi + 0xb4], 0
mov byte [esi + 0xb5], 0
mov byte [esi + 0xb6], 0
mov byte [esi + 0xb7], 0
mov byte [esi + 0xb8], 0
mov byte [esi + 0xb9], 0
mov byte [esi + 0xba], 0
mov byte [esi + 0xbb], 0
mov byte [esi + 0xbc], 0
mov byte [esi + 0xbd], 0
mov byte [esi + 0xbe], 0
lea eax, [esi + 0xc0]
call fcn.00409c14
xor eax, eax
mov dword [esi + 0xc4], eax
mov byte [esi + 0xc8], 0
mov byte [esi + 0xc9], 1
mov byte [esi + 0xca], 0
lea eax, [esi + 0xcc]
call fcn.00409c14
xor eax, eax
mov dword [esi + 0xd0], eax
mov byte [esi + 0xd4], 0
mov byte [esi + 0xd5], 0
mov byte [esi + 0xd6], 0
mov byte [esi + 0xd7], 0
mov byte [esi + 0xd8], 0
mov byte [esi + 0xd9], 0
mov byte [esi + 0xda], 0
mov byte [esi + 0xdb], 0
xor eax, eax
mov dword [esi + 0xdc], eax
mov byte [esi + 0xe0], 0
mov byte [esi + 0xe1], 0
mov byte [esi + 0xe2], 0
mov byte [esi + 0xe3], 1
mov byte [esi + 0xe4], 1
mov byte [esi + 0xe5], 0
mov byte [esi + 0xe6], 0
mov byte [esi + 0xe7], 0
mov word [esi + 0xe8], 0x64
mov word [esi + 0xea], 0
mov word [esi + 0xec], 0x1320
mov word [esi + 0xee], 0x7f
mov byte [esi + 0xf0], 0
mov byte [esi + 0xf1], 0
mov byte [esi + 0xf2], 0
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x28]
lea eax, [esi + 0xf8]
call fcn.00409c14
mov eax, esi
call fcn.004fd294
mov dword [esi + 0xfc], eax
mov byte [esi + 0x100], 0
mov byte [esi + 0x101], 1
mov byte [esi + 0x102], 1
mov byte [esi + 0x103], 0
xor eax, eax
mov dword [esi + 0x104], eax
lea eax, [esi + 0x108]
call fcn.00409c14
mov byte [esi + 0x10c], 0
lea eax, [esi + 0x110]
call fcn.00409c14
mov eax, dword [esi + 0xfc]
sub eax, 1
jb 0x4fad72
sub eax, 5
je 0x4fad8c
jmp 0x4fad9a
lea edx, [ebp - 4]
mov eax, esi
call fcn.004fb580
mov eax, dword [ebp - 4]
lea edx, [esi + 0xe8]
call fcn.004eff70
jmp 0x4fada6
push 1
push pe_nt_image_headers32
call sub.kernel32.dll_SetProcessShutdownParameters
jmp 0x4fada6
push 1
push 0x27f
call sub.kernel32.dll_SetProcessShutdownParameters
xor eax, eax
mov dword [esi + 0x114], eax
xor eax, eax
mov dword [esi + 0x118], eax
xor eax, eax
mov dword [esi + 0x11c], eax
lea eax, [esi + 0x120]
xor ecx, ecx
mov edx, 0xfc
call fcn.00407814
mov dword [esi + 0x120], 0xfc
mov byte [esi + 0x21c], 1
lea eax, [esi + 0x220]
call fcn.0040d690
lea eax, [esi + 0x224]
call fcn.0040d690
lea eax, [esi + 0x228]
call fcn.0040d690
lea eax, [esi + 0x22c]
call fcn.0040d690
lea eax, [esi + 0x230]
call fcn.0040d690
lea eax, [esi + 0x234]
call fcn.0040d690
lea eax, [esi + 0x238]
call fcn.0040d690
lea eax, [esi + 0x23c]
call fcn.0040d690
lea eax, [esi + 0x240]
call fcn.0040d690
lea eax, [esi + 0x244]
call fcn.0040d690
lea eax, [esi + 0x248]
call fcn.0040d690
lea eax, [esi + 0x24c]
call fcn.0040d690
lea eax, [esi + 0x250]
call fcn.0040d690
lea eax, [esi + 0x254]
call fcn.0040d690
lea eax, [esi + 0x258]
call fcn.0040d690
lea eax, [esi + 0x25c]
call fcn.0040d690
lea eax, [esi + 0x260]
call fcn.0040d690
lea eax, [esi + 0x264]
call fcn.0040d690
lea eax, [esi + 0x268]
call fcn.0040d690
lea eax, [esi + 0x26c]
call fcn.0040d690
mov eax, dword [0x50e7fc]
mov byte [eax], 1
movzx eax, byte [0x4faf0c]
call fcn.004812d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4faeee
lea eax, [ebp - 4]
call fcn.00409c14
ret