Function at 0x40113a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x100]
sub esp, 0x180
mov eax, dword [0x425848]
xor eax, ebp
mov dword [ebp + 0xfc], eax
mov edx, dword [0x426b68]
mov ecx, dword [ebp + 0x108]
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
test dl, 8
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], esi
je 0x40117a
mov dword [ebp - 0x74], 1
test dx, 0x800
je 0x401196
cmp byte [ecx], 0
mov eax, ecx
je 0x401196
cmp byte [eax], 7
jne 0x401190
mov byte [eax], 0x20
inc eax
cmp byte [eax], 0
jne 0x401188
test dl, 1
mov byte [ebp - 0x6c], 0
je 0x4011ea
mov eax, dword [0x427dc4]
cmp eax, esi
je 0x4011ae
push ecx
call eax
pop ecx
jmp 0x4011ea
test dx, 0x100
je 0x4011ce
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x426c74], eax
jne 0x4011ea
push 0
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x70]
jmp 0x4011d4
push esi
lea eax, [ebp - 0x78]
push eax
push ecx
call fcn.00403582
pop ecx
push eax
push dword [ebp - 0x70]
push dword [0x427d8c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [0x426b68], 2
mov ebx, 0x104
je 0x4013a3
push ebx
mov edi, 0x426b70
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.00403610
add esp, 0xc
test byte [0x426b68], 0x60
je 0x401232
push 0
call fcn.00401005
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x7c], edx
call fcn.00401000
pop ecx
pop ecx
mov esi, eax
test byte [0x426b68], 0x20
je 0x401267
push dword [esi]
mov eax, dword [esi + 0x14]
push dword [esi + 4]
add eax, 0x76c
push dword [esi + 8]
push eax
push dword [esi + 0xc]
mov eax, dword [esi + 0x10]
inc eax
push eax
push str._.2d__.2d__.4d__.2d:_.2d:_.2d
lea eax, [ebp - 0x6c]
push 0x50
push eax
call fcn.004046ed
add esp, 0x24
test byte [0x426b68], 0x40
je 0x40130a
push ebx
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.00403610
lea eax, [ebp - 0x1c]
push eax
call fcn.00403582
push 0x12
lea edi, [ebp + eax - 0x1c]
lea eax, [ebp + 0xe8]
push 0x41f3e8
push eax
call fcn.00403610
add esp, 0x1c
jmp 0x4012aa
cmp byte [edi], 0x2e
je 0x4012b3
dec edi
lea eax, [ebp - 0x1c]
cmp edi, eax
ja 0x4012a4
jmp 0x4012cb
push 0x12
lea eax, [edi + 1]
push eax
lea eax, [ebp + 0xe8]
push eax
call fcn.00403610
add esp, 0xc
mov byte [edi], 0
lea eax, [ebp - 0x1c]
push eax
call fcn.00403582
pop ecx
mov dword [ebp - 0x78], eax
mov ecx, dword [esi + 0x14]
cmp ecx, 0x64
jle 0x4012e3
add ecx, 0xffffff9c
lea edx, [ebp + 0xe8]
push edx
push ecx
push dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
inc ecx
push ecx
mov ecx, ebx
sub ecx, eax
push str.__.2d_.2d_.2d._s
push ecx
lea eax, [ebp + eax - 0x1c]
push eax
call fcn.004046ed
add esp, 0x1c
test word [0x426b68], 0x100
je 0x4013a0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
cmp dword [0x426c74], edi
je 0x4013a0
lea eax, [ebp - 0x1c]
push eax
call fcn.00403582
push 0x12
lea esi, [ebp + eax - 0x1c]
lea eax, [ebp + 0xe8]
push 0x41f3e8
push eax
call fcn.00403610
add esp, 0x10
jmp 0x401354
cmp byte [esi], 0x2e
je 0x40135d
dec esi
lea eax, [ebp - 0x1c]
cmp esi, eax
ja 0x40134e
jmp 0x401375
push 0x12
lea eax, [esi + 1]
push eax
lea eax, [ebp + 0xe8]
push eax
call fcn.00403610
add esp, 0xc
mov byte [esi], 0
lea eax, [ebp - 0x1c]
push eax
call fcn.00403582
lea ecx, [ebp + 0xe8]
push ecx
push edi
mov ecx, ebx
sub ecx, eax
push str.__d._s
mov dword [ebp - 0x78], eax
push ecx
lea eax, [ebp + eax - 0x1c]
push eax
call fcn.004046ed
add esp, 0x18
xor edi, edi
inc edi
cmp dword [ebp + 0x10c], 1
jne 0x40146a
test byte [0x426b68], 0x80
je 0x40146a
push 0
call fcn.00401005
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x7c], edx
call fcn.00401000
push dword [eax]
mov ecx, dword [eax + 0x14]
push dword [eax + 4]
add ecx, 0x76c
push dword [eax + 8]
push ecx
push dword [eax + 0xc]
mov eax, dword [eax + 0x10]
inc eax
push eax
push str._.2d__.2d__.4d__.2d:_.2d:_.2d
lea eax, [ebp - 0x6c]
push 0x50
push eax
call fcn.004046ed
push ebx
lea eax, [ebp - 0x1c]
push 0x426b70
push eax
call fcn.00403610
lea eax, [ebp - 0x1c]
push eax
call fcn.00403582
add esp, 0x3c
lea eax, [ebp + eax - 0x1c]
jmp 0x401433
mov cl, byte [eax]
cmp cl, 0x2f
je 0x40144c
cmp cl, 0x5c
je 0x40144c
cmp cl, 0x2e
je 0x40143c
mov byte [eax], 0
dec eax
lea ecx, [ebp - 0x1c]
cmp eax, ecx
ja 0x40141e
jmp 0x401464
lea ecx, [ebp + 0xe8]
sub ecx, eax
push ecx
push 0x41f3c8
jmp 0x40145a
lea ecx, [ebp + 0xe8]
sub ecx, eax
push ecx
push str.error.log
inc eax
push eax
call fcn.00403610
add esp, 0xc
xor edi, edi
inc edi
mov dword [ebp - 0x74], edi
cmp edi, 1
jne 0x40158a
lea eax, [ebp - 0x1c]
push eax
mov esi, 0x426c78
push esi
call fcn.004037b4
test eax, eax
pop ecx
pop ecx
jne 0x4014ad
push ebx
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.00403610
mov eax, dword [0x426b6c]
add esp, 0xc
test eax, eax
je 0x4014a6
push eax
call fcn.0040e4dc
pop ecx
and dword [0x426b6c], 0
xor edi, edi
cmp dword [0x426b6c], edi
jne 0x40152e
mov ebx, 0x180
cmp dword [ebp - 0x74], 1
push ebx
jne 0x4015a5
push 0x4101
push esi
call fcn.0040f6a0
add esp, 0xc
cmp eax, 0xffffffff
mov dword [0x426b6c], eax
je 0x4015c1
push 2
push 0
push 0
push eax
call fcn.0040ee2e
add esp, 0x10
cmp dword [0x426b6c], 0
jne 0x40152e
call fcn.0040ed67
push dword [ebp - 0x70]
push dword [eax]
push esi
push str.Unable_to_create_log_file___s__due_to_error___d__n____String___s_
push 0x1000
mov esi, 0x426d80
push esi
call fcn.004046ed
add esp, 0x18
push 0x10
push str.Internal_error...
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp byte [ebp - 0x6c], 0
je 0x401550
lea eax, [ebp - 0x6c]
push eax
call fcn.00403582
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [0x426b6c]
call fcn.0040ec50
add esp, 0x10
push dword [ebp - 0x70]
call fcn.00403582
push eax
push dword [ebp - 0x70]
push dword [0x426b6c]
call fcn.0040ec50
add esp, 0x10
test word [0x426b68], 0x8000
je 0x40157e
cmp dword [ebp + 0x10c], 1
jne 0x40158a
push dword [0x426b6c]
call fcn.0040e5a9
pop ecx
mov ecx, dword [ebp + 0xfc]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0040f870
add ebp, 0x100
leave
ret
push 0x4301
push esi
call fcn.0040f6a0
add esp, 0xc
cmp eax, 0xffffffff
mov dword [0x426b6c], eax
jne 0x4014f2
and dword [0x426b6c], 0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jl 0x4014bc
jmp 0x4014f2