Function at 0x402cf0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x416a2f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov al, byte [esp + 7]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x14], esi
mov byte [esi + 4], al
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea ecx, [esi + 0x18]
mov dword [esp + 0x124], ebx
call fcn.00415a80
lea ecx, [esi + 0x1c]
mov byte [esp + 0x124], 1
call fcn.00415a80
lea ecx, [esi + 0x20]
mov byte [esp + 0x124], 2
call fcn.00415a80
lea ecx, [esi + 0x24]
mov byte [esp + 0x124], 3
call fcn.00415a80
lea ecx, [esi + 0x28]
mov byte [esp + 0x124], 4
call fcn.00415a80
lea ecx, [esi + 0x7c]
mov byte [esp + 0x124], 5
call fcn.00415a80
lea ecx, [esi + 0x80]
mov byte [esp + 0x124], 6
call fcn.00415a80
lea ecx, [esi + 0x84]
mov byte [esp + 0x124], 7
call fcn.00415a80
lea ecx, [esi + 0x88]
mov byte [esp + 0x124], 8
call fcn.00415a80
lea ecx, [esi + 0x8c]
mov byte [esp + 0x124], 9
call fcn.00415a80
lea ecx, [esi + 0x90]
mov byte [esp + 0x124], 0xa
call fcn.00415a80
lea ecx, [esi + 0xa0]
mov byte [esp + 0x124], 0xb
call fcn.00415a80
lea ecx, [esi + 0xa4]
mov byte [esp + 0x124], 0xc
call fcn.00415a80
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x41e6ac
push 1
push 1
push ebx
mov byte [esp + 0x134], 0xd
mov dword [esi], 0x418650
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
call edi
push 0x41e694
push 1
push 1
push ebx
mov dword [esi + 0x4c], eax
call edi
push 0x41e67c
push 1
push 1
push ebx
mov dword [esi + 0x50], eax
call edi
push 0x41e660
push 1
push 1
push ebx
mov dword [esi + 0x54], eax
call edi
push 0x41e648
push 1
push 1
push ebx
mov dword [esi + 0x60], eax
call edi
lea ecx, [esp + 0x18]
push 0x104
push ecx
push ebx
mov dword [esi + 0x58], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x18]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
cmp eax, ebx
je 0x402f65
mov byte [eax + 1], bl
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
call fcn.00415abc
push eax
mov ecx, 0x41fc7c
mov byte [esp + 0x128], 0xe
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0xc]
mov byte [esp + 0x124], 0xd
call sub.MFC42.DLL_CString::CString
mov ecx, dword [0x41fc7c]
push ecx
push 0x41e638
push 0x41fc78
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0xc]
push 0x41fbd0
push 0x41fc7c
push edx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
mov ecx, 0x41fd68
push eax
mov byte [esp + 0x128], 0xf
call fcn.00407ff0
lea ecx, [esp + 0xc]
mov byte [esp + 0x124], 0xd
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x41fc78]
mov dword [0x41fd80], 1
push eax
push ebx
push 0x41e62c
push 0x41e624
mov dword [0x41fd7c], 1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x41fd6c], eax
mov ecx, dword [esp + 0x11c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret