Function at 0x4016c0
Capabilities:
Read .ini file
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4230de
mov eax, dword fs:[0]
push eax
sub esp, 0x33c
mov eax, dword [0x42e454]
xor eax, esp
mov dword [esp + 0x338], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42e454]
xor eax, esp
push eax
lea eax, [esp + 0x350]
mov dword fs:[0], eax
mov eax, dword [str.._ShareMemProc.ini]
mov ecx, dword [0x428db8]
mov edx, dword [0x428dbc]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esp + 0x20], eax
mov eax, dword [0x428dc0]
mov dword [esp + 0x24], ecx
mov cx, word [0x428dc4]
mov dword [esp + 0x28], edx
mov dl, byte [0x428dc6]
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov word [esp + 0x30], cx
mov byte [esp + 0x32], dl
mov dword [esp + 0x18], ebx
push 0x103
lea eax, [esp + 0x249]
push ebx
push eax
mov byte [esp + 0x250], bl
call fcn.00410360
add esp, 0xc
push 0x103
lea ecx, [esp + 0x141]
push ebx
push ecx
call fcn.00410360
add esp, 0xc
push 0x103
lea edx, [esp + 0x39]
push ebx
push edx
call fcn.00410360
mov eax, dword [str.SharedMemName]
mov edx, dword [0x428dd0]
mov ecx, dword [0x428dcc]
mov dword [esp + 0x148], eax
mov ax, word [0x428dd4]
mov dword [esp + 0x150], edx
mov edx, dword [0x428ddc]
mov word [esp + 0x154], ax
mov al, byte [esp + 0x24]
mov dword [esp + 0x44], edx
mov dx, word [0x428de4]
add esp, 0xc
mov dword [esp + 0x140], ecx
mov ecx, dword [str.SharedMemSize]
add al, 0x31
mov word [esp + 0x40], dx
mov byte [esp + 0x149], al
mov dword [esp + 0x34], ecx
mov ecx, dword [0x428de0]
mov byte [esp + 0x41], al
lea eax, [esp + 0x20]
push eax
push 0x104
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x24c]
push ecx
push 0x42743d
lea edx, [esp + 0x14c]
push edx
push str.Main
call ebp
cmp eax, ebx
je 0x401966
lea eax, [esp + 0x20]
push eax
push 0x96
lea ecx, [esp + 0x3c]
push ecx
push str.Main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x82c
mov edi, eax
call fcn.0040a90f
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov dword [esp + 0x358], ebx
je 0x4018a7
mov dword [eax], vtable.SharedMemory::CSharedMemory.0
mov dword [eax + 0x804], ebx
mov dword [eax + 0x808], ebx
mov dword [eax + 0x80c], ebx
mov dword [eax + 0x810], ebx
mov dword [eax + 0x814], ebx
mov dword [eax + 0x818], ebx
mov dword [eax + 0x81c], ebx
mov byte [eax + 0x820], bl
mov dword [eax + 0x824], ebx
mov byte [eax + 4], bl
mov dword [eax + 0x828], ebx
mov esi, eax
jmp 0x4018a9
xor esi, esi
push 0x7ff
lea edx, [esp + 0x248]
lea eax, [esi + 4]
push edx
mov dword [esp + 0x360], 0xffffffff
push eax
mov dword [esp + 0x28], esi
mov byte [eax + 0x7ff], bl
call fcn.0040aef0
shl edi, 0x14
add esp, 0xc
mov ecx, esi
mov dword [esi + 0x804], edi
call fcn.00401060
test al, al
jne 0x401903
push str.Create_shareMem_failed_
push 2
call fcn.00401ce0
mov ecx, eax
call fcn.004037e0
add esp, 8
jmp 0x401928
mov eax, dword [0x4315b8]
mov edx, dword [eax + 4]
lea edi, [eax + 4]
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
call fcn.004020c0
mov esi, eax
call fcn.00402100
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, 0x100
mov dword [esp + 0x18], eax
jb 0x401743
mov ecx, dword [esp + 0x350]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x338]
xor ecx, esp
call fcn.0040a253
add esp, 0x348
ret
cmp dword [esp + 0x18], ebx
jne 0x40193e
push str.Read_config_failed_
push 2
call fcn.00401ce0
mov ecx, eax
call fcn.004037e0
add esp, 8
push 0xffffffffffffffff
call fcn.0040a86a
int3