Function at 0x40dfb5
Capabilities:
Read .ini file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa1c
push ebx
push esi
push edi
mov ebx, 0x5007f0
push ebx
push 1
mov edi, str.ReportsMessageBox
push edi
mov esi, 0x450eac
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ebx
push eax
push edi
push esi
mov dword [ebp - 0x18], eax
call fcn.00427eed
push str.stdout
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40e046
call fcn.0040db98
push eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetFileType]
dec eax
dec eax
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x18], esi
cmp eax, esi
je 0x40e0af
push dword [0x503568]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [0x503568]
push dword [ebp - 8]
call fcn.0040db18
jmp 0x40e1f7
push esi
push esi
push 2
push esi
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40e0af
push dword [0x5010bc]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40e0a8
call fcn.00445dc2
push eax
lea eax, [ebp - 0x21c]
push str._s_writing_report_file
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x30
push 0x450e54
lea eax, [ebp - 0x21c]
push eax
push dword [0x5010bc]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40e1fa
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [0x503568]
mov ebx, 0xfde9
push esi
push ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call edi
cmp eax, esi
mov dword [ebp - 0x1c], eax
jle 0x40e13b
push eax
call fcn.00442eef
pop ecx
push esi
push esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
push eax
push 0xffffffffffffffff
push dword [0x503568]
push esi
push ebx
call edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 3
push 0x46aa24
push dword [ebp - 8]
call edi
test eax, eax
je 0x40e129
push esi
lea eax, [ebp - 4]
push eax
dec ebx
push ebx
push dword [ebp - 0x14]
push dword [ebp - 8]
call edi
test eax, eax
je 0x40e129
add dword [ebp - 4], 2
jmp 0x40e132
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x14]
call fcn.00442f64
pop ecx
cmp dword [ebp - 0x10], esi
jne 0x40e149
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], esi
jne 0x40e16b
cmp dword [ebp - 0x18], esi
je 0x40e1f7
push dword [0x5010bc]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40e1f7
cmp dword [0x501074], esi
jne 0x40e1f7
push 0x40
pop edi
cmp dword [ebp - 0xc], esi
je 0x40e1a2
push dword [ebp - 0xc]
call fcn.00443f98
push eax
lea eax, [ebp - 0xa1c]
push str._s_writing_report_file
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x30
pop edi
jmp 0x40e1d3
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, 0x3e8
cmp eax, ecx
jae 0x40e1b9
push eax
push str._u_Bytes_written_to_n_S
jmp 0x40e1c3
xor edx, edx
div ecx
push eax
push str._u_KB_written_to_n_S
lea eax, [ebp - 0xa1c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push edi
push 0x450e54
lea eax, [ebp - 0xa1c]
push eax
push dword [0x5010bc]
call fcn.00449e41
push dword [0x5010bc]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4