Function at 0x477777
Capabilities:
Write file on windows

Disassembly:
push 0xdc
mov eax, 0x50844b
call fcn.004ec79c
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
mov esi, ecx
mov edi, edx
call ebx
cmp dword [esi + 0x70], 8
jb 0x47779f
mov eax, dword [esi + 0x5c]
jmp 0x4777a2
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 0x477974
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.00411dd9
cmp byte [eax], 0
jne 0x47784e
lea eax, [ebp - 0xe8]
push eax
call fcn.004071c6
and dword [ebp - 4], 0
push ebx
push ecx
push 0x525218
push ecx
lea eax, [ebp - 0xe0]
push str.CFFConfig::ReWritePrefFile___CreateFile_failed._GetLastError
push eax
call fcn.004058d5
add esp, 0xc
push eax
call fcn.004058d5
add esp, 0xc
push eax
call fcn.00403746
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xe8]
call fcn.0040574e
lea edi, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00405549
push 0
push 1
mov esi, edi
call fcn.0040754f
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xe8]
call fcn.00405a60
xor al, al
call fcn.004ec7f8
ret
lea eax, [ebp - 0xe0]
push eax
mov dword [ebp - 4], esi
call fcn.00405430
mov byte [ebp - 4], 3
call fcn.00411dd9
lea ecx, [ebp - 0x60]
call fcn.00405346
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], 8
jb 0x47787d
mov edi, dword [eax + 4]
jmp 0x477880
lea edi, [eax + 4]
lea eax, [ebp - 0xe0]
push 0x5251c8
push eax
call fcn.004058d5
pop ecx
pop ecx
push edi
push eax
call fcn.004058d5
pop ecx
pop ecx
push 0x5251c0
push eax
call fcn.004058d5
pop ecx
pop ecx
push str.CFFConfig::ReWritePrefFile___CreateFile_failed._GetLastError
push eax
call fcn.004058d5
pop ecx
pop ecx
push 0x525218
push eax
call fcn.004058d5
pop ecx
pop ecx
push ebx
push eax
call fcn.00403746
push 0
push 1
lea esi, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.0040754f
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 0x47792d
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0xe0]
call fcn.0040532c
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.0040754f
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.0040539b
jmp 0x477846
xor esi, esi
push esi
call ebx
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x34], esi
jb 0x47798a
mov eax, dword [edi + 4]
jmp 0x47798d
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 0x477b64
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.00411dd9
cmp byte [eax], 0
jne 0x477a3b
lea eax, [ebp - 0xe8]
push eax
call fcn.004071c6
push ebx
push ecx
push 0x525218
push ecx
lea eax, [ebp - 0xe0]
push str.CFFConfig::ReWritePrefFile___WriteFile_failed._GetLastError
push eax
mov dword [ebp - 4], 9
call fcn.004058d5
add esp, 0xc
push eax
call fcn.004058d5
add esp, 0xc
push eax
call fcn.00403746
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xe8]
call fcn.0040574e
lea edi, [ebp - 0x30]
mov byte [ebp - 4], 0xa
call fcn.00405549
push esi
push 1
mov esi, edi
call fcn.0040754f
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xe8]
call fcn.00405a60
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x477846
lea eax, [ebp - 0xe0]
push eax
mov dword [ebp - 4], 0xb
call fcn.00405430
mov byte [ebp - 4], 0xc
call fcn.00411dd9
lea ecx, [ebp - 0x60]
call fcn.00405346
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x18], 8
jb 0x477a6e
mov edi, dword [eax + 4]
jmp 0x477a71
lea edi, [eax + 4]
lea eax, [ebp - 0xe0]
push 0x5251c8
push eax
call fcn.004058d5
pop ecx
pop ecx
push edi
push eax
call fcn.004058d5
pop ecx
pop ecx
push 0x5251c0
push eax
call fcn.004058d5
pop ecx
pop ecx
push str.CFFConfig::ReWritePrefFile___WriteFile_failed._GetLastError
push eax
call fcn.004058d5
pop ecx
pop ecx
push 0x525218
push eax
call fcn.004058d5
pop ecx
pop ecx
push ebx
push eax
call fcn.00403746
push esi
push 1
lea esi, [ebp - 0x60]
mov byte [ebp - 4], 0xc
call fcn.0040754f
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 0x477b1d
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0xe0]
call fcn.0040532c
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.0040754f
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.0040539b
jmp 0x477a2d
mov edi, dword [edi + 0x14]
cmp dword [ebp - 0x34], edi
jae 0x477d2f
call fcn.00411dd9
cmp byte [eax], 0
jne 0x477c04
lea eax, [ebp - 0xe8]
push eax
call fcn.004071c6
mov dword [ebp - 4], 0x12
push dword [ebp - 0x34]
lea eax, [ebp - 0xe0]
push ecx
push 0x525218
push ecx
push str.CFFConfig::ReWritePrefFile_____WriteFile_failed._size_written_too_small
push eax
call fcn.004058d5
add esp, 0xc
push eax
call fcn.004058d5
add esp, 0xc
push eax
call fcn.00403746
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xe8]
call fcn.0040574e
lea edi, [ebp - 0x30]
mov byte [ebp - 4], 0x13
call fcn.00405549
push esi
push 1
mov esi, edi
call fcn.0040754f
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xe8]
call fcn.00405a60
xor bl, bl
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x477848
lea eax, [ebp - 0xe0]
push eax
mov dword [ebp - 4], 0x14
call fcn.00405430
mov byte [ebp - 4], 0x15
call fcn.00411dd9
lea ecx, [ebp - 0x60]
call fcn.00405346
mov byte [ebp - 4], 0x16
cmp dword [eax + 0x18], 8
jb 0x477c37
mov edi, dword [eax + 4]
jmp 0x477c3a
lea edi, [eax + 4]
lea eax, [ebp - 0xe0]
push 0x5251c8
push eax
call fcn.004058d5
pop ecx
pop ecx
push edi
push eax
call fcn.004058d5
pop ecx
pop ecx
push 0x5251c0
push eax
call fcn.004058d5
pop ecx
pop ecx
push str.CFFConfig::ReWritePrefFile_____WriteFile_failed._size_written_too_small
push eax
call fcn.004058d5
pop ecx
pop ecx
push 0x525218
push eax
call fcn.004058d5
pop ecx
pop ecx
push dword [ebp - 0x34]
push eax
call fcn.00403746
push esi
push 1
lea esi, [ebp - 0x60]
mov byte [ebp - 4], 0x15
call fcn.0040754f
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 0x477ce8
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0xe0]
call fcn.0040532c
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.0040754f
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.0040539b
jmp 0x477bf2
mov bl, 1
jmp 0x477bf4