Function at 0x4019a0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41f41c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3b0
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0x6c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0x4211a4
call fcn.00401dd0
mov esi, 1
mov dword [esp + 0x6c], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 0x10], esi
push ebx
push esi
lea eax, [esp + 0x20]
push ebx
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x3d4], ebx
call fcn.00403320
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c8], esi
call fcn.00403470
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x14], 0x4211a0
mov al, byte [esp + 0xf]
push ebx
lea ecx, [esp + 0xa4]
mov dword [esp + 0x3c8], 2
mov byte [esp + 0xa4], al
call fcn.004032d0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xb1]
mov byte [esp + 0xb0], bl
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x2b8]
stosw word es:[edi], ax
push str.SETUP2K.INI
push ecx
mov byte [esp + 0x3cc], 3
stosb byte es:[edi], al
call esi
lea edx, [esp + 0x2b8]
push edx
call fcn.00401630
add esp, 4
lea eax, [esp + 0x2b8]
push eax
push ebx
push str.Debug
push str.Default
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jne 0x401ad4
push 1
lea ecx, [esp + 0xa4]
mov byte [esp + 0x3c8], 2
call fcn.004032d0
lea ecx, [esp + 0x6c]
mov dword [esp + 0x3c4], 0xffffffff
call fcn.00402580
jmp 0x401d98
lea ecx, [esp + 0xb0]
push 0x104
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0xb0]
push 0x5c
push edx
call fcn.0041281c
add esp, 8
mov byte [eax + 1], bl
lea eax, [esp + 0xb0]
push str.Debug.txt
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0xb0]
push ecx
push 0x42a580
call esi
lea edx, [esp + 0x1b4]
push edx
call fcn.004128d2
add esp, 4
lea ecx, [esp + 0x18]
push 0xa
push 0x42a580
call fcn.00403600
test eax, eax
jne 0x401b5b
mov eax, dword [esp + 0x14]
push ebx
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x1c]
or al, 2
lea ecx, [esp + ecx + 0x18]
push eax
call fcn.004033e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401c38
mov eax, dword [esp + 0x3d0]
cmp eax, 0xff
jne 0x401bad
mov edx, dword [esp + 0x3cc]
lea eax, [esp + 0x1b4]
push edx
push 9
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00403fb0
add esp, 8
push eax
call fcn.00404240
add esp, 8
push eax
call fcn.00403fb0
add esp, 8
jmp 0x401be6
mov edx, dword [esp + 0x3cc]
push eax
push edx
lea eax, [esp + 0x1bc]
push 9
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.00403fb0
add esp, 8
push eax
call fcn.00404240
add esp, 8
push eax
call fcn.00403fb0
add esp, 8
mov ecx, eax
call fcn.00402040
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00402370
mov ecx, esi
call fcn.004024e0
mov eax, dword [esp + 0x68]
cmp eax, ebx
je 0x401c25
push eax
call fcn.0041287c
add esp, 4
test eax, eax
jne 0x401c25
push 2
push ebx
lea ecx, [esp + 0x20]
call fcn.00403a80
lea edx, [esp + 0x18]
test edx, edx
jne 0x401d3d
mov eax, dword [esp + 0x14]
push ebx
push 2
mov ecx, dword [eax + 4]
lea ecx, [esp + ecx + 0x1c]
jmp 0x401d38
push str.Info
push 9
lea edx, [esp + 0x1c]
push str.Time
push edx
call fcn.00403fb0
add esp, 8
push eax
call fcn.00404240
add esp, 8
push eax
call fcn.00403fb0
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00402370
mov ecx, esi
call fcn.004024e0
mov eax, dword [esp + 0x3d0]
cmp eax, 0xff
jne 0x401cb6
mov eax, dword [esp + 0x3cc]
lea ecx, [esp + 0x1b4]
push eax
push 9
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00403fb0
add esp, 8
push eax
call fcn.00404240
add esp, 8
push eax
call fcn.00403fb0
add esp, 8
jmp 0x401cef
push eax
mov eax, dword [esp + 0x3d0]
push eax
lea ecx, [esp + 0x1bc]
push 9
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.00403fb0
add esp, 8
push eax
call fcn.00404240
add esp, 8
push eax
call fcn.00403fb0
add esp, 8
mov ecx, eax
call fcn.00402040
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00402370
mov ecx, esi
call fcn.004024e0
mov eax, dword [esp + 0x68]
cmp eax, ebx
je 0x401d2a
push eax
call fcn.0041287c
add esp, 4
test eax, eax
jne 0x401d2a
push 2
push ebx
lea ecx, [esp + 0x20]
call fcn.00403a80
lea eax, [esp + 0x18]
test eax, eax
jne 0x401d3d
mov ecx, dword [esp + 0x14]
push ebx
push 2
mov edx, dword [ecx + 4]
lea ecx, [esp + edx + 0x1c]
call fcn.00402550
push 1
lea ecx, [esp + 0xa4]
mov byte [esp + 0x3c8], 2
call fcn.004032d0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x6c]
mov dword [esp + 0x10], eax
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x14], 0x4211a0
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c4], 4
call fcn.004028e0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x3c4], 0xffffffff
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x14], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
lea ecx, [esp + 0x6c]
mov dword [esp + 0x6c], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
call fcn.00407174
mov ecx, dword [esp + 0x3bc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x3bc
ret