Function at 0x40dc70
Capabilities:
Create process on windows
Create process suspended
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43878b
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x449af0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0041259b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40dcbb
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x90], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x100
or eax, ecx
jge 0x40dcfc
push 0x100
lea ecx, [esp + 0x18]
call fcn.004021f0
mov esi, dword [esp + 0x14]
push str..PAPSW.ini
push 0x100
push esi
push str.Error
push str.NEWREG_VER_URL
push str.RegisterServer
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test esi, esi
jne 0x40dd24
xor eax, eax
jmp 0x40dd41
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40dd30
sub eax, edx
js 0x40e19c
cmp eax, dword [esi - 8]
jg 0x40e19c
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
call fcn.0041259b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40dd6b
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x20]
push str.ESalesUpdate.exe
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x98], 1
call fcn.00405bf0
push 0x440954
push eax
lea edx, [esp + 0x2c]
mov bl, 2
push edx
mov byte [esp + 0xa4], bl
call fcn.004039e0
add esp, 0x14
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x94], 3
call fcn.00402000
mov byte [esp + 0x90], bl
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 0x40ddeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40de13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0041259b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40de2d
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push str.ESales_bin
lea ecx, [edi + 0x178]
push ecx
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x9c], 4
call fcn.004039e0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x94], 5
call fcn.00402000
mov byte [esp + 0x90], 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40de98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0040e820
push 1
push 0x440954
lea ecx, [esp + 0x18]
call fcn.0040e820
push 0x43f1c0
lea ecx, [esp + 0x1c]
call fcn.00403ce0
lea ecx, [esp + 0x20]
push ecx
push edi
mov byte [esp + 0x98], 6
call fcn.0040e1b0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x94], 7
call fcn.00402000
mov byte [esp + 0x90], 6
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40df15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.0040e820
push 1
push 0x440954
lea ecx, [esp + 0x18]
call fcn.0040e820
mov eax, dword [edi + 0x1fc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.0040e820
push 1
push 0x440954
lea ecx, [esp + 0x18]
call fcn.0040e820
mov eax, dword [edi + 0x204]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.0040e820
push 1
push 0x440954
lea ecx, [esp + 0x18]
call fcn.0040e820
call fcn.0040f8f0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x43f1fc
call fcn.00403ce0
mov byte [esp + 0x94], 8
mov ebx, dword [esp + 0x14]
push ecx
lea esi, [ebx - 0x10]
mov dword [esp + 0x30], esp
mov edi, esp
push esi
call fcn.00401f40
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [esp + 0x98], 6
call fcn.0040fb30
push 0x44
lea ecx, [esp + 0x48]
push 0
push ecx
call fcn.00424840
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x7c], 1
mov word [esp + 0x80], 0xa
mov edx, dword [ebx - 0xc]
mov eax, dword [esi + 8]
mov ecx, 1
sub ecx, dword [esi + 0xc]
sub eax, edx
add esp, 0x14
or eax, ecx
jge 0x40e013
push edx
lea ecx, [esp + 0x14]
call fcn.004021f0
mov ebx, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x40]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
or edx, 0xffffffff
mov byte [esp + 0x90], 4
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x40e0f1
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e062
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x90], 1
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 0x40e08a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [esp + 0x90], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e0ae
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e0d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e10a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x90], 1
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 0x40e132
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [esp + 0x90], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e156
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e181
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401ed0
int3