Function at 0x40f6b0
Capabilities:
Create process on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x44b989
mov eax, dword fs:[0]
push eax
sub esp, 0x6c0
mov eax, dword [0x45e520]
xor eax, esp
mov dword [esp + 0x6b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e520]
xor eax, esp
push eax
lea eax, [esp + 0x6d4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x6e4]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov esi, ecx
mov ebp, 0xf
push eax
lea ecx, [esp + 0xcc]
mov dword [esp + 0xe4], ebp
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
call fcn.00402280
push 0xffffffffffffffff
mov dword [esp + 0x6e0], ebx
push ebx
push esi
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
call fcn.00402280
mov byte [esp + 0x6dc], 1
mov eax, dword [0x462410]
mov edx, dword [eax + 0xc]
mov ecx, 0x462410
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x6e0], 3
call fcn.00406200
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6e0], 4
call fcn.00411230
mov byte [esp + 0x6dc], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f7c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x103
lea ecx, [esp + 0x4c1]
push ebx
push ecx
mov byte [esp + 0x4c8], bl
call fcn.00436440
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x4c8]
mov ecx, eax
add esp, 0xc
mov esi, 0x104
sub edx, ecx
mov cl, byte [edx + eax]
cmp cl, bl
je 0x40f809
mov byte [eax], cl
add eax, 1
sub esi, 1
jne 0x40f7f6
jmp 0x40f80d
cmp esi, ebx
jne 0x40f810
sub eax, 1
mov byte [eax], bl
sub esp, 0x1c
mov esi, esp
lea eax, [esp + 0x4d8]
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
mov dword [esp + 0x38], esp
mov byte [esi + 4], bl
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40f830
sub eax, edi
push eax
lea edx, [esp + 0x4dc]
push edx
mov ecx, esi
call fcn.004024f0
sub esp, 0x1c
mov byte [esp + 0x714], 5
mov ecx, esp
mov dword [esp + 0x74], esp
push 4
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push 0x4529b8
mov byte [ecx + 4], bl
call fcn.004024f0
mov byte [esp + 0x714], 3
call fcn.004041e0
lea eax, [esp + 0x4bc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x40f939
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x58], esp
push 4
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.fail
mov byte [ecx + 4], bl
call fcn.004024f0
sub esp, 0x1c
mov byte [esp + 0x714], 6
mov ecx, esp
mov dword [esp + 0x54], esp
push 0x11
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.PathIsDirectory__
mov byte [ecx + 4], bl
call fcn.004024f0
mov byte [esp + 0x714], 3
call fcn.004041e0
mov esi, 0x10
cmp dword [esp + 0xa0], esi
jb 0x40f903
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.00416c01
add esp, 4
mov byte [esp + 0x6dc], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41016c
mov dword [esp + 0x1c], 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], vtable.CParseConfig.0
mov byte [esp + 0x6dc], 8
mov ecx, dword [esp + 0x70]
mov esi, 0x10
cmp dword [esp + 0x84], esi
jae 0x40f973
lea ecx, [esp + 0x70]
lea eax, [esp + 0x2c]
push eax
call fcn.00401a10
test al, al
je 0x4100b4
mov ecx, str.cfgsvr.exe
call fcn.00402fd0
test eax, eax
je 0x40f9ce
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.fail
call fcn.004020b0
sub esp, 0x1c
mov byte [esp + 0x714], 9
mov ecx, esp
mov dword [esp + 0x5c], esp
push str.KillExe_cfgsvr.exe_
call fcn.004020b0
mov byte [esp + 0x714], 8
call fcn.004041e0
call fcn.00407f30
test eax, eax
jne 0x40faae
mov ecx, str.secsvc.exe
call fcn.00402fd0
test eax, eax
je 0x40faae
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push str.fail
call fcn.004020b0
sub esp, 0x1c
mov byte [esp + 0x714], 0xa
mov ecx, esp
mov dword [esp + 0x58], esp
push str.KillExe_secsvc.exe_
call fcn.004020b0
mov byte [esp + 0x714], 8
call fcn.004041e0
push str.cfgsvr.exe
lea ecx, [esp + 0x4c0]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x40fa57
push 1
push ebx
push ebx
lea edx, [esp + 0x4c8]
push edx
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea esi, [esp + 0x2c]
call fcn.00410c40
lea ecx, [esp + 0x88]
call fcn.00402120
mov byte [esp + 0x6dc], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fa94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x6c]
call fcn.00402120
lea ecx, [esp + 0xc0]
call fcn.00402120
jmp 0x4101b9
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x6dc], 0xb
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
cmp esi, eax
jbe 0x40fae2
call fcn.00432c1e
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x2c]
mov edi, ecx
mov dword [esp + 0x24], edi
mov ebp, esi
mov edi, edi
cmp dword [esp + 0x30], eax
mov esi, eax
jbe 0x40fafd
call fcn.00432c1e
cmp edi, ebx
je 0x40fb09
lea ecx, [esp + 0x2c]
cmp edi, ecx
je 0x40fb0e
call fcn.00432c1e
cmp ebp, esi
je 0x40fecd
push 0x103
lea edx, [esp + 0x179]
push ebx
push edx
mov byte [esp + 0x180], bl
call fcn.00436440
add esp, 0xc
push 0x104
lea eax, [esp + 0x27c]
push ebx
push eax
call fcn.00436440
add esp, 0xc
push 0x103
lea ecx, [esp + 0x5c9]
push ebx
push ecx
mov byte [esp + 0x5d0], bl
call fcn.00436440
add esp, 0xc
lea esi, [esp + 0x4bc]
mov edx, 0x104
lea eax, [esp + 0x5c4]
lea esp, [esp]
mov cl, byte [esi]
cmp cl, bl
je 0x40fb95
mov byte [eax], cl
add eax, 1
add esi, 1
sub edx, 1
jne 0x40fb80
jmp 0x40fb99
cmp edx, ebx
jne 0x40fb9c
sub eax, 1
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push str.DataBase
lea edx, [esp + 0x5c8]
push edx
mov byte [eax], bl
call esi
cmp edi, ebx
jne 0x40fbbc
call fcn.00432c1e
cmp ebp, dword [edi + 8]
jb 0x40fbc6
call fcn.00432c1e
push ebp
lea eax, [esp + 0x5c8]
push eax
call esi
cmp ebp, dword [edi + 8]
jb 0x40fbdb
call fcn.00432c1e
push ebp
lea edx, [esp + 0x4c0]
lea esi, [esp + 0x178]
call fcn.004034c0
test eax, eax
je 0x40fe73
mov ecx, esi
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x40fe73
lea edx, [esp + 0x37c]
push edx
lea eax, [esp + 0x5c8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40fe31
cmp ebp, dword [edi + 8]
jb 0x40fc31
call fcn.00432c1e
push ebp
lea ecx, [esp + 0xfc]
call fcn.004020b0
mov esi, 0xf
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
mov ecx, str.log.dat
lea edi, [esp + 0xf8]
mov byte [esp + 0x6dc], 0xd
call fcn.00412d30
test al, al
je 0x40fc8a
push 0xc
push str.XJ3o7zR5iQ
lea ecx, [esp + 0xac]
call fcn.004024f0
jmp 0x40fcd5
mov ecx, str.base.dat
lea edi, [esp + 0xf8]
call fcn.00412d30
test al, al
je 0x40fcae
lea ecx, [esp + 0xa4]
push ecx
mov edx, str.dWmVD8RQ1R
jmp 0x40fcd0
mov ecx, str.customer.dat
lea edi, [esp + 0xf8]
call fcn.00412d30
test al, al
je 0x40fcd5
lea edx, [esp + 0xa4]
push edx
mov edx, str.qYythIx7I_X
call fcn.004109c0
lea eax, [esp + 0x5c4]
push eax
lea ecx, [esp + 0x54]
call fcn.004020b0
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x11c]
push eax
mov byte [esp + 0x6e8], 0xe
call fcn.004139d0
mov edi, 0x10
mov byte [esp + 0x6dc], 0x10
cmp dword [esp + 0x68], edi
jb 0x40fd28
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00416c01
add esp, 4
lea ecx, [esp + 0x114]
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
call fcn.00413b60
mov edx, dword [esp + 0x24]
cmp ebp, dword [edx + 8]
jb 0x40fd4e
call fcn.00432c1e
lea eax, [ebp + 0x110]
push eax
lea ecx, [esp + 0xe0]
call fcn.004020b0
lea ecx, [esp + 0xdc]
push ecx
lea edx, [esp + 0x118]
push edx
mov byte [esp + 0x6e4], 0x11
call fcn.00413cd0
cmp dword [esp + 0xf4], edi
jb 0x40fd97
mov eax, dword [esp + 0xe0]
push eax
call fcn.00416c01
add esp, 4
lea ecx, [esp + 0x114]
push ecx
mov dword [esp + 0xf8], esi
mov dword [esp + 0xf4], ebx
mov byte [esp + 0xe4], bl
mov byte [esp + 0x6e0], 0xd
call fcn.00413a70
cmp dword [esp + 0xbc], edi
jb 0x40fdda
mov edx, dword [esp + 0xa8]
push edx
call fcn.00416c01
add esp, 4
mov byte [esp + 0x6dc], 0xb
cmp dword [esp + 0x110], edi
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
jb 0x40fe10
mov eax, dword [esp + 0xfc]
push eax
call fcn.00416c01
add esp, 4
mov ecx, dword [esp + 0x24]
cmp ebp, dword [ecx + 8]
jb 0x40fe1e
call fcn.00432c1e
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
add ebp, 0x214
jmp 0x40faf0
sub esp, 0x1c
lea edx, [esp + 0x5e0]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call fcn.004020b0
sub esp, 0x1c
mov byte [esp + 0x714], 0x12
mov ecx, esp
mov dword [esp + 0x58], esp
push 0x453544
call fcn.004020b0
mov byte [esp + 0x714], 0xb
call fcn.004041e0
xor ebp, ebp
jmp 0x40fed1
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 5
mov edi, 0xf
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push str.fail_
mov byte [ecx + 4], bl
call fcn.004024f0
sub esp, 0x1c
mov byte [esp + 0x714], 0x13
mov ecx, esp
mov dword [esp + 0x58], esp
push 0x24
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push str.BuildPath
mov byte [ecx + 4], bl
call fcn.004024f0
mov byte [esp + 0x714], 0xb
call fcn.004041e0
xor ebp, ebp
jmp 0x40fed6
mov ebp, dword [esp + 0x1c]
mov edi, 0xf
push str.cfgsvr.exe
lea eax, [esp + 0x4c0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
cmp ebp, ebx
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
je 0x40ff1e
push 1
push ebx
push ebx
lea ecx, [esp + 0x4c8]
push ecx
push str.open
push ebx
call esi
cmp eax, 0x20
jl 0x40ff12
jne 0x41000d
lea edx, [esp + 0x40]
push edx
call fcn.00403840
xor ebp, ebp
mov ecx, str.Security_Server
call fcn.004077d0
push 1
push ebx
push ebx
lea edx, [esp + 0x4c8]
push edx
push str.open
push ebx
call esi
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x40ff4d
push eax
call fcn.00416c01
add esp, 4
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x40ff5e
push eax
call fcn.00416c01
add esp, 4
mov esi, 0x10
cmp dword [esp + 0xa0], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
jb 0x40ff88
mov eax, dword [esp + 0x8c]
push eax
call fcn.00416c01
add esp, 4
mov byte [esp + 0x6dc], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ffc5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x84], esi
jb 0x40ffdb
mov ecx, dword [esp + 0x70]
push ecx
call fcn.00416c01
add esp, 4
cmp dword [esp + 0xd8], esi
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
jb 0x410006
mov edx, dword [esp + 0xc4]
push edx
call fcn.00416c01
add esp, 4
mov eax, ebp
jmp 0x4101bb
mov ecx, str.Security_Server
call fcn.004077d0
test eax, eax
jne 0x40ff4d
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, str.cfgsvr.exe
call fcn.00402fd0
lea eax, [esp + 0x40]
push eax
call fcn.00403840
mov ecx, str.Security_Server
call fcn.004077d0
push 1
push ebx
push ebx
lea ecx, [esp + 0x4c8]
push ecx
push str.open
push ebx
call esi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x30
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x453024
xor ebp, ebp
mov byte [ecx + 4], bl
call fcn.004024f0
sub esp, 0x1c
mov byte [esp + 0x714], 0x14
mov ecx, esp
mov dword [esp + 0x58], esp
push 8
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x453058
mov byte [ecx + 4], bl
call fcn.004024f0
mov byte [esp + 0x714], 0xb
call fcn.004041e0
jmp 0x40ff3c
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x12
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push 0x452ae4
mov byte [ecx + 4], bl
call fcn.004024f0
sub esp, 0x1c
mov byte [esp + 0x714], 0x15
mov ecx, esp
mov dword [esp + 0x58], esp
push 8
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push 0x452af8
mov byte [ecx + 4], bl
call fcn.004024f0
mov byte [esp + 0x714], 8
call fcn.004041e0
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x410116
push eax
call fcn.00416c01
add esp, 4
cmp dword [esp + 0xa0], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
jb 0x41013b
mov eax, dword [esp + 0x8c]
push eax
call fcn.00416c01
add esp, 4
mov byte [esp + 0x6dc], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410178
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x84], esi
jb 0x41018e
mov ecx, dword [esp + 0x70]
push ecx
call fcn.00416c01
add esp, 4
cmp dword [esp + 0xd8], esi
mov byte [esp + 0x70], bl
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebp
jb 0x4101b9
mov edx, dword [esp + 0xc4]
push edx
call fcn.00416c01
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x6d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6b8]
xor ecx, esp
call fcn.004322f2
add esp, 0x6cc
ret 4