Function at 0x40ed60
Capabilities:
Create process on windows
Resolve function by parsing pe exports
Set current directory
Shutdown system

Disassembly:
push 0xffffffffffffffff
push 0x46ad1b
mov eax, dword fs:[0]
push eax
sub esp, 0x128
push ebx
push ebp
push esi
push edi
mov eax, dword [0x491c04]
xor eax, esp
push eax
lea eax, [esp + 0x13c]
mov dword fs:[0], eax
mov ebp, ecx
cmp byte [ebp + 0x229], 1
jne 0x40f55a
mov ecx, dword [ebp + 0x2a8]
call fcn.0041a070
sub esp, 0xc
mov edi, eax
mov eax, esp
mov dword [esp + 0x2c], esp
push eax
mov ecx, edi
mov dword [esp + 0x50], edi
call fcn.0042cc00
call fcn.00410380
add esp, 0xc
cmp eax, 8
jne 0x40ee52
mov ecx, dword [ebp + 0x2a8]
push 0x3e7
call fcn.0041a760
test al, al
je 0x40f53e
call fcn.0040b8d0
lea ecx, [esp + 0x20]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea edx, [esp + 0x7c]
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [esp + 0x20]
push 0
push 0
push 0
lea eax, [esp + 0x84]
push eax
push 0
push ecx
mov dword [esp + 0x90], 1
mov dword [esp + 0x9c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40f53e
mov ecx, ebp
call fcn.0040d380
lea ecx, [esp + 0x50]
call fcn.00429080
xor esi, esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x144], esi
call fcn.00429080
lea ecx, [esp + 0x34]
mov byte [esp + 0x144], 1
call fcn.00429080
lea ecx, [esp + 0x6c]
mov byte [esp + 0x144], 2
call fcn.00429080
mov bl, 3
mov ecx, edi
mov byte [esp + 0x144], bl
mov dword [esp + 0x18], esi
call fcn.0042d2c0
test eax, eax
jle 0x40f4f7
push esi
mov ecx, edi
call fcn.0042d2b0
mov ecx, eax
call fcn.0042b330
test eax, eax
jne 0x40f4e3
lea edx, [esp + 0xb8]
push edx
push esi
mov ecx, edi
call fcn.0042d2b0
mov ecx, eax
call fcn.0042b340
mov eax, dword [esp + 0xbc]
push eax
call fcn.0044f543
add esp, 4
lea ecx, [esp + 0xb8]
mov esi, eax
call fcn.004290f0
mov ecx, dword [ebp + 0x2a8]
push esi
call fcn.0041a760
test al, al
je 0x40f4df
mov ecx, dword [esp + 0x18]
push ecx
xor esi, esi
mov ecx, edi
mov dword [esp + 0x24], esi
call fcn.0042d2b0
mov ecx, eax
call fcn.0042b650
test eax, eax
jle 0x40f4df
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xf4]
push edx
push esi
push eax
mov ecx, edi
call fcn.0042d2b0
mov ecx, eax
call fcn.0042b640
mov ecx, eax
call fcn.00430820
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x148], 4
call fcn.00429100
lea ecx, [esp + 0xf4]
mov byte [esp + 0x144], bl
call fcn.004290f0
mov ecx, dword [esp + 0x18]
push esi
push ecx
mov ecx, edi
call fcn.0042d2b0
mov ecx, eax
call fcn.0042b640
mov ecx, eax
call fcn.004307d0
sub eax, 9
je 0x40f4ad
sub eax, 1
je 0x40f4a2
sub eax, 1
jne 0x40f4bb
sub esp, 0xc
lea edx, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00428f90
lea eax, [esp + 0x10c]
push eax
call fcn.004058e0
add esp, 0x10
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x148], 5
call fcn.00429100
lea ecx, [esp + 0x100]
mov byte [esp + 0x144], bl
call fcn.004290f0
sub esp, 0xc
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00428f90
lea eax, [esp + 0x124]
push eax
call fcn.004058e0
mov eax, dword [eax + 4]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x118]
call fcn.004290f0
push 0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x24], esp
push str.HTTP:__
call fcn.00428f20
lea ecx, [esp + 0x140]
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0x158], 6
call fcn.00429260
mov byte [esp + 0x154], 7
mov ecx, eax
mov byte [esp + 0x154], 8
call fcn.004292e0
lea ecx, [esp + 0x130]
mov esi, eax
mov byte [esp + 0x144], bl
call fcn.004290f0
cmp esi, 1
je 0x40f2a6
cmp esi, 2
je 0x40f2a6
push 0x473030
lea ecx, [esp + 0x70]
call fcn.004291e0
test al, al
je 0x40f1f4
push 0x4733b0
lea ecx, [esp + 0x98]
call fcn.00428f20
push 0x47317c
lea ecx, [esp + 0xa4]
mov byte [esp + 0x148], 0xd
call fcn.00428f20
lea edx, [esp + 0xa0]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x12c]
push ecx
mov byte [esp + 0x150], 0xe
call fcn.00430b70
lea edx, [esp + 0x34]
push edx
push eax
lea eax, [esp + 0xcc]
push eax
mov byte [esp + 0x150], 0xf
call fcn.00430b70
lea ecx, [esp + 0x94]
push ecx
push eax
lea edx, [esp + 0x114]
push edx
mov byte [esp + 0x150], 0x10
call fcn.00430b70
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x20], esp
lea edx, [esp + 0x78]
push edx
push eax
push ecx
mov byte [esp + 0x15c], 0x11
call fcn.00430b70
lea eax, [esp + 0xe8]
push eax
call fcn.004058e0
add esp, 0x10
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x148], 0x12
call fcn.00429100
lea ecx, [esp + 0xdc]
mov byte [esp + 0x144], 0x11
call fcn.004290f0
lea ecx, [esp + 0x10c]
mov byte [esp + 0x144], 0x10
call fcn.004290f0
lea ecx, [esp + 0xc4]
mov byte [esp + 0x144], 0xf
call fcn.004290f0
lea ecx, [esp + 0x124]
mov byte [esp + 0x144], 0xe
call fcn.004290f0
lea ecx, [esp + 0xa0]
mov byte [esp + 0x144], 0xd
call fcn.004290f0
lea ecx, [esp + 0x94]
mov byte [esp + 0x144], bl
call fcn.004290f0
jmp 0x40f402
push 0x47317c
lea ecx, [esp + 0xb0]
call fcn.00428f20
lea ecx, [esp + 0xac]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0xf0]
push eax
mov byte [esp + 0x150], 0x13
call fcn.00430b70
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x20], esp
lea edx, [esp + 0x40]
push edx
push eax
push ecx
mov byte [esp + 0x15c], 0x14
call fcn.00430b70
lea eax, [esp + 0xdc]
push eax
call fcn.004058e0
add esp, 0x10
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x148], 0x15
call fcn.00429100
lea ecx, [esp + 0xd0]
mov byte [esp + 0x144], 0x14
call fcn.004290f0
lea ecx, [esp + 0xe8]
mov byte [esp + 0x144], 0x13
call fcn.004290f0
lea ecx, [esp + 0xac]
mov byte [esp + 0x144], bl
call fcn.004290f0
jmp 0x40f402
mov ecx, dword [esp + 0x38]
cmp byte [ecx], 0x2a
jne 0x40f3f4
lea ecx, [esp + 0x34]
call fcn.00429000
dec eax
push eax
push 2
lea edx, [esp + 0x80]
push edx
lea ecx, [esp + 0x40]
call fcn.00429310
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x148], 9
call fcn.00429100
lea ecx, [esp + 0x78]
mov byte [esp + 0x144], bl
call fcn.004290f0
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x48]
call fcn.00424c00
push SysReAllocString
lea ecx, [esp + 0x48]
mov byte [esp + 0x148], 0xa
call fcn.00424c30
push 0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x24], esp
push str.SOFTWAREMicrosoftInternet_ExplorerMain
call fcn.00428f20
lea ecx, [esp + 0x54]
call fcn.00424d70
sub esp, 0xc
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00428f90
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.Start_Page
mov byte [esp + 0x160], 0xb
call fcn.00428f20
lea ecx, [esp + 0x5c]
mov byte [esp + 0x15c], 0xa
call fcn.00425860
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x48]
call fcn.00424c30
push 0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x34], esp
push str.SOFTWAREMicrosoftInternet_ExplorerMain
call fcn.00428f20
lea ecx, [esp + 0x54]
call fcn.00424d70
sub esp, 0xc
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00428f90
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.Start_Page
mov byte [esp + 0x160], 0xc
call fcn.00428f20
lea ecx, [esp + 0x5c]
mov byte [esp + 0x15c], 0xa
call fcn.00425860
lea ecx, [esp + 0x44]
mov byte [esp + 0x144], bl
call fcn.00424c20
jmp 0x40f4bb
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x2c]
call fcn.00429100
push 0x473430
lea ecx, [esp + 0x60]
push ecx
sub esp, 0xc
lea edx, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.00428f90
lea edi, [esp + 0x9c]
call fcn.0041ac70
add esp, 0xc
mov ecx, eax
mov byte [esp + 0x14c], 0x16
call fcn.00429260
mov ecx, eax
mov byte [esp + 0x148], 0x17
call fcn.00429180
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1f], al
mov byte [esp + 0x144], 0x16
call fcn.004290f0
mov ecx, edi
mov byte [esp + 0x144], bl
call fcn.004290f0
cmp byte [esp + 0x1f], 0
push 5
je 0x40f489
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov edi, dword [esp + 0x40]
jmp 0x40f4bb
mov ecx, dword [esp + 0x30]
push 0
push 0
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, dword [esp + 0x40]
jmp 0x40f4bb
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x2c]
jmp 0x40f4b6
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x38]
call fcn.00429100
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
push ecx
inc esi
mov ecx, edi
mov dword [esp + 0x24], esi
call fcn.0042d2b0
mov ecx, eax
call fcn.0042b650
cmp esi, eax
jl 0x40ef33
mov esi, dword [esp + 0x18]
inc esi
mov ecx, edi
mov dword [esp + 0x18], esi
call fcn.0042d2c0
cmp esi, eax
jl 0x40eeb2
lea ecx, [esp + 0x6c]
mov byte [esp + 0x144], 2
call fcn.004290f0
lea ecx, [esp + 0x34]
mov byte [esp + 0x144], 1
call fcn.004290f0
lea ecx, [esp + 0x28]
mov byte [esp + 0x144], 0
call fcn.004290f0
lea ecx, [esp + 0x50]
mov dword [esp + 0x144], 0xffffffff
call fcn.004290f0
mov ecx, ebp
call fcn.0040e0b0
mov edx, dword [ebp + 0x20]
push 0
push 0x64
push 8
push edx
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x40f6e8
mov ecx, 0x4947c0
call fcn.0041d080
mov esi, eax
test esi, esi
jne 0x40f59a
cmp dword [ebp + 0x2ac], 7
jne 0x40f6e8
push eax
mov ecx, ebp
call fcn.0043906b
mov ecx, ebp
call fcn.0040e0b0
mov eax, dword [ebp + 0x20]
push esi
push 0x64
push 8
push eax
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x40f6e8
cmp byte [0x4932e7], 0
je 0x40f6e0
mov ecx, dword [ebp + 0x2a4]
mov byte [ebp + 0x229], 1
call fcn.0041cb10
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x30], esp
push ecx
mov ecx, dword [ebp + 0x2a8]
call fcn.0041a040
mov ecx, dword [ebp + 0x2a8]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x2c], esp
push edx
mov dword [esp + 0x160], 0x18
call fcn.0041a010
or edi, 0xffffffff
mov ecx, ebp
mov dword [esp + 0x15c], edi
call fcn.0040e020
mov ecx, dword [ebp + 0x2a8]
push esi
call fcn.0041a080
mov ecx, dword [ebp + 0x2a8]
call fcn.0041aa50
lea esi, [ebp + 0x74]
push 0
mov ecx, esi
mov dword [ebp + 0x2ac], 9
call fcn.004390ad
mov ecx, dword [ebp + 0x94]
lea eax, [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x5c]
push edx
mov ecx, ebp
call fcn.004325dd
push 0
mov ecx, esi
call fcn.0043906b
push 0
lea ecx, [ebp + 0x18c]
call fcn.0043906b
lea esi, [ebp + 0x100]
push 1
mov ecx, esi
call fcn.004390ad
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x64]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, esi
call fcn.0043902b
push 0x10
lea eax, [esp + 0x8c]
push eax
mov ecx, 0x4948b4
call fcn.0041f820
mov eax, dword [eax + 4]
push eax
mov ecx, esi
mov dword [esp + 0x148], 0x19
call fcn.00438fc9
lea ecx, [esp + 0x88]
mov dword [esp + 0x144], edi
call fcn.004290f0
mov ecx, dword [ebp + 0x120]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x40f6e8
push esi
mov ecx, ebp
call fcn.0040e360
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret