Function at 0x40a459
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0c
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test esi, esi
jne 0x40a474
xor al, al
jmp 0x40a694
push edi
push 0x103
lea eax, [ebp - 0x10b]
mov byte [ebp - 0x10c], 0
push 0
push eax
call fcn.00443b90
lea eax, [ebx + 0x29c]
push eax
lea eax, [ebx + 0x28c]
push eax
lea eax, [ebx + 0x20c]
push eax
lea ecx, [ebx + 0x108]
push ecx
lea eax, [ebp - 0x10c]
push str._s_mupdb__s__s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
xor eax, eax
push eax
push eax
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40a51f
push str.IniDataFileset::Save___create_file_failure_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
push eax
push eax
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40a51f
xor al, al
jmp 0x40a693
xor eax, eax
push 0xff
push eax
mov dword [ebp + 8], eax
mov byte [ebp - 0x30c], al
lea eax, [ebp - 0x30b]
push eax
call fcn.00443b90
push 0xff
lea eax, [ebp - 0x20b]
mov byte [ebp - 0x20c], 0
push 0
push eax
call fcn.00443b90
push 0x7ff
lea eax, [ebp - 0xb0b]
mov byte [ebp - 0xb0c], 0
push 0
push eax
call fcn.00443b90
add esp, 0x24
lea eax, [ebx + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebx + 4]
mov dword [ebp - 8], eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ecx
call ebx
push dword [0x494888]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xb0c]
push dword [0x494884]
push dword [0x494880]
push str._s_t_s_t_s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0xb0c]
push eax
call ebx
push 0
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0xb0c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi]
mov ecx, esi
xor ebx, ebx
call dword [eax + 0x10]
test eax, eax
je 0x40a68a
mov eax, dword [esi]
lea ecx, [ebp - 0x30c]
push 0
push ecx
push ebx
mov ecx, esi
call dword [eax + 0x20]
mov eax, dword [esi]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push ebx
mov ecx, esi
call dword [eax + 0x24]
mov eax, dword [esi]
mov ecx, esi
push ebx
call dword [eax + 0x3c]
mov ecx, dword [ebp - 8]
mov edx, eax
and edx, 1
cmovne ecx, dword [ebp - 4]
lea ecx, [ebp + ecx - 0x20c]
mov al, byte [ecx]
test al, al
je 0x40a633
cmp al, 0x5c
je 0x40a637
cmp al, 0x2f
jne 0x40a63a
inc ecx
jmp 0x40a629
push edx
push ecx
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0xb0c]
push str._s_t_s_t_d_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0xb0c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0xb0c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esi]
mov ecx, esi
inc ebx
call dword [edx + 0x10]
cmp ebx, eax
jb 0x40a5e8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4