Function at 0x491839
Capabilities:
Write file on windows

Disassembly:
push 0xdc
mov eax, 0x521b71
call fcn.005066d0
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
mov esi, ecx
mov edi, edx
call ebx
cmp dword [esi + 0x70], 8
jb 0x491861
mov eax, dword [esi + 0x5c]
jmp 0x491864
lea eax, [esi + 0x5c]
xor ecx, ecx
push ecx
push ecx
push 2
pop esi
push esi
push ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40], eax
cmp eax, 0xffffffff
jne 0x491a36
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.0040dbda
cmp byte [eax], 0
jne 0x491910
lea eax, [ebp - 0xe8]
push eax
call fcn.0040d9e1
and dword [ebp - 4], 0
push ebx
push ecx
push 0x543368
push ecx
lea eax, [ebp - 0xe0]
push str.CFFConfig::ReWritePrefFile___CreateFile_failed._GetLastError
push eax
call fcn.0040c0a0
add esp, 0xc
push eax
call fcn.0040c0a0
add esp, 0xc
push eax
call fcn.00408e51
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xe8]
call fcn.0040bf31
lea edi, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0040ba4e
push 0
push 1
mov esi, edi
call fcn.0040dac5
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xe8]
call fcn.0040c22b
xor al, al
call fcn.0050672c
ret
lea eax, [ebp - 0xe0]
push eax
mov dword [ebp - 4], esi
call fcn.0040b935
mov byte [ebp - 4], 3
call fcn.0040dbda
lea ecx, [ebp - 0x60]
call fcn.0040b84b
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], 8
jb 0x49193f
mov edi, dword [eax + 4]
jmp 0x491942
lea edi, [eax + 4]
lea eax, [ebp - 0xe0]
push 0x54331c
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push edi
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push 0x543314
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push str.CFFConfig::ReWritePrefFile___CreateFile_failed._GetLastError
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push 0x543368
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push ebx
push eax
call fcn.00408e51
push 0
push 1
lea esi, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.0040dac5
lea eax, [ebp - 0x44]
push eax
call sub.log4cplusU.dll_public:_static_class_log4cplus::Logger___cdecl_log4cplus::Logger::getRoot_void_
pop ecx
mov esi, 0x2710
push esi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 5
call sub.log4cplusU.dll_public:_bool___thiscall_log4cplus::Logger::isEnabledFor_int_const
test al, al
je 0x4919ef
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0xe0]
call fcn.0040b831
push 0x200
push str..FFConfig.cpp
push eax
push esi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call sub.log4cplusU.dll_public:_void___thiscall_log4cplus::Logger::forcedLog_int__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___char_const___int_const
push 0
push 1
lea esi, [ebp - 0x60]
call fcn.0040dac5
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call sub.log4cplusU.dll_public_virtual:_void___thiscall_log4cplus::Logger::destructor_void_
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 2
call fcn.0040b8a0
jmp 0x491908
xor esi, esi
push esi
call ebx
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x34], esi
jb 0x491a4c
mov eax, dword [edi + 4]
jmp 0x491a4f
lea eax, [edi + 4]
push esi
lea edx, [ebp - 0x34]
push edx
push ecx
push eax
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x491c26
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.0040dbda
cmp byte [eax], 0
jne 0x491afd
lea eax, [ebp - 0xe8]
push eax
call fcn.0040d9e1
push ebx
push ecx
push 0x543368
push ecx
lea eax, [ebp - 0xe0]
push str.CFFConfig::ReWritePrefFile___WriteFile_failed._GetLastError
push eax
mov dword [ebp - 4], 9
call fcn.0040c0a0
add esp, 0xc
push eax
call fcn.0040c0a0
add esp, 0xc
push eax
call fcn.00408e51
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xe8]
call fcn.0040bf31
lea edi, [ebp - 0x30]
mov byte [ebp - 4], 0xa
call fcn.0040ba4e
push esi
push 1
mov esi, edi
call fcn.0040dac5
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xe8]
call fcn.0040c22b
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x491908
lea eax, [ebp - 0xe0]
push eax
mov dword [ebp - 4], 0xb
call fcn.0040b935
mov byte [ebp - 4], 0xc
call fcn.0040dbda
lea ecx, [ebp - 0x60]
call fcn.0040b84b
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x18], 8
jb 0x491b30
mov edi, dword [eax + 4]
jmp 0x491b33
lea edi, [eax + 4]
lea eax, [ebp - 0xe0]
push 0x54331c
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push edi
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push 0x543314
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push str.CFFConfig::ReWritePrefFile___WriteFile_failed._GetLastError
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push 0x543368
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push ebx
push eax
call fcn.00408e51
push esi
push 1
lea esi, [ebp - 0x60]
mov byte [ebp - 4], 0xc
call fcn.0040dac5
lea eax, [ebp - 0x3c]
push eax
call sub.log4cplusU.dll_public:_static_class_log4cplus::Logger___cdecl_log4cplus::Logger::getRoot_void_
pop ecx
mov esi, 0x2710
push esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xe
call sub.log4cplusU.dll_public:_bool___thiscall_log4cplus::Logger::isEnabledFor_int_const
test al, al
je 0x491bdf
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0xe0]
call fcn.0040b831
push 0x208
push str..FFConfig.cpp
push eax
push esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xf
call sub.log4cplusU.dll_public:_void___thiscall_log4cplus::Logger::forcedLog_int__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___char_const___int_const
push 0
push 1
lea esi, [ebp - 0x60]
call fcn.0040dac5
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xc
call sub.log4cplusU.dll_public_virtual:_void___thiscall_log4cplus::Logger::destructor_void_
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 0xb
call fcn.0040b8a0
jmp 0x491aef
mov edi, dword [edi + 0x14]
cmp dword [ebp - 0x34], edi
jae 0x491df1
call fcn.0040dbda
cmp byte [eax], 0
jne 0x491cc6
lea eax, [ebp - 0xe8]
push eax
call fcn.0040d9e1
mov dword [ebp - 4], 0x12
push dword [ebp - 0x34]
lea eax, [ebp - 0xe0]
push ecx
push 0x543368
push ecx
push str.CFFConfig::ReWritePrefFile_____WriteFile_failed._size_written_too_small
push eax
call fcn.0040c0a0
add esp, 0xc
push eax
call fcn.0040c0a0
add esp, 0xc
push eax
call fcn.00408e51
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xe8]
call fcn.0040bf31
lea edi, [ebp - 0x30]
mov byte [ebp - 4], 0x13
call fcn.0040ba4e
push esi
push 1
mov esi, edi
call fcn.0040dac5
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xe8]
call fcn.0040c22b
xor bl, bl
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x49190a
lea eax, [ebp - 0xe0]
push eax
mov dword [ebp - 4], 0x14
call fcn.0040b935
mov byte [ebp - 4], 0x15
call fcn.0040dbda
lea ecx, [ebp - 0x60]
call fcn.0040b84b
mov byte [ebp - 4], 0x16
cmp dword [eax + 0x18], 8
jb 0x491cf9
mov edi, dword [eax + 4]
jmp 0x491cfc
lea edi, [eax + 4]
lea eax, [ebp - 0xe0]
push 0x54331c
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push edi
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push 0x543314
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push str.CFFConfig::ReWritePrefFile_____WriteFile_failed._size_written_too_small
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push 0x543368
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push dword [ebp - 0x34]
push eax
call fcn.00408e51
push esi
push 1
lea esi, [ebp - 0x60]
mov byte [ebp - 4], 0x15
call fcn.0040dac5
lea eax, [ebp - 0x3c]
push eax
call sub.log4cplusU.dll_public:_static_class_log4cplus::Logger___cdecl_log4cplus::Logger::getRoot_void_
pop ecx
mov esi, 0x2710
push esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x17
call sub.log4cplusU.dll_public:_bool___thiscall_log4cplus::Logger::isEnabledFor_int_const
test al, al
je 0x491daa
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0xe0]
call fcn.0040b831
push 0x20e
push str..FFConfig.cpp
push eax
push esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x18
call sub.log4cplusU.dll_public:_void___thiscall_log4cplus::Logger::forcedLog_int__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___char_const___int_const
push 0
push 1
lea esi, [ebp - 0x60]
call fcn.0040dac5
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x15
call sub.log4cplusU.dll_public_virtual:_void___thiscall_log4cplus::Logger::destructor_void_
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 0x14
call fcn.0040b8a0
jmp 0x491cb4
mov bl, 1
jmp 0x491cb6