Function at 0x4e2226
Capabilities:
Write file on windows

Disassembly:
push 0xdc
mov eax, 0x56dc41
call fcn.0054d478
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
mov esi, ecx
mov edi, edx
call ebx
cmp dword [esi + 0x70], 8
jb 0x4e224e
mov eax, dword [esi + 0x5c]
jmp 0x4e2251
lea eax, [esi + 0x5c]
xor esi, esi
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40], eax
cmp eax, 0xffffffff
jne 0x4e2417
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.00462c28
cmp byte [eax], 0
jne 0x4e22f6
lea eax, [ebp - 0xe8]
push eax
call fcn.00409b60
push edi
push ecx
push 0x5967ac
push ecx
lea eax, [ebp - 0xe0]
push str.CFFConfig::ReWritePrefFile___CreateFile_failed._GetLastError
push eax
mov dword [ebp - 4], esi
call fcn.00407390
add esp, 0xc
push eax
call fcn.00407390
add esp, 0xc
push eax
call fcn.004155d0
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0xe8]
call fcn.00407170
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00406a80
lea ecx, [ebp - 0x30]
call fcn.00409c40
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xe8]
call fcn.00407660
xor al, al
call fcn.0054d4d4
ret
lea eax, [ebp - 0xe0]
push eax
mov dword [ebp - 4], 2
call fcn.004068d0
mov byte [ebp - 4], 3
call fcn.00462c28
lea esi, [ebp - 0x60]
call fcn.00406720
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], 8
jb 0x4e2329
mov esi, dword [eax + 4]
jmp 0x4e232c
lea esi, [eax + 4]
lea eax, [ebp - 0xe0]
push 0x5950f8
push eax
call fcn.00407390
pop ecx
pop ecx
push esi
push eax
call fcn.00407390
pop ecx
pop ecx
push 0x5950f0
push eax
call fcn.00407390
pop ecx
pop ecx
push str.CFFConfig::ReWritePrefFile___CreateFile_failed._GetLastError
push eax
call fcn.00407390
pop ecx
pop ecx
push 0x5967ac
push eax
call fcn.00407390
pop ecx
pop ecx
push edi
push eax
call fcn.004155d0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.00409c40
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 0x4e23d0
lea ecx, [ebp - 0x60]
lea eax, [ebp - 0xe0]
call fcn.00406700
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
lea ecx, [ebp - 0x60]
call fcn.00409c40
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.004067e0
jmp 0x4e22ee
push esi
call ebx
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x34], esi
jb 0x4e242b
mov eax, dword [edi + 4]
jmp 0x4e242e
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 0x4e25f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.00462c28
cmp byte [eax], 0
jne 0x4e24d5
lea eax, [ebp - 0xe8]
push eax
call fcn.00409b60
push edi
push ecx
push 0x5967ac
push ecx
lea eax, [ebp - 0xe0]
push str.CFFConfig::ReWritePrefFile___WriteFile_failed._GetLastError
push eax
mov dword [ebp - 4], 9
call fcn.00407390
add esp, 0xc
push eax
call fcn.00407390
add esp, 0xc
push eax
call fcn.004155d0
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0xe8]
call fcn.00407170
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xa
call fcn.00406a80
lea ecx, [ebp - 0x30]
call fcn.00409c40
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xe8]
call fcn.00407660
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4e22ee
lea eax, [ebp - 0xe0]
push eax
mov dword [ebp - 4], 0xb
call fcn.004068d0
mov byte [ebp - 4], 0xc
call fcn.00462c28
lea esi, [ebp - 0x60]
call fcn.00406720
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x18], 8
jb 0x4e2508
mov esi, dword [eax + 4]
jmp 0x4e250b
lea esi, [eax + 4]
lea eax, [ebp - 0xe0]
push 0x5950f8
push eax
call fcn.00407390
pop ecx
pop ecx
push esi
push eax
call fcn.00407390
pop ecx
pop ecx
push 0x5950f0
push eax
call fcn.00407390
pop ecx
pop ecx
push str.CFFConfig::ReWritePrefFile___WriteFile_failed._GetLastError
push eax
call fcn.00407390
pop ecx
pop ecx
push 0x5967ac
push eax
call fcn.00407390
pop ecx
pop ecx
push edi
push eax
call fcn.004155d0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xc
call fcn.00409c40
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 0x4e25af
lea ecx, [ebp - 0x60]
lea eax, [ebp - 0xe0]
call fcn.00406700
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
lea ecx, [ebp - 0x60]
call fcn.00409c40
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.004067e0
jmp 0x4e24c7
mov edi, dword [edi + 0x14]
cmp dword [ebp - 0x34], edi
jae 0x4e27b6
call fcn.00462c28
cmp byte [eax], 0
jne 0x4e2693
lea eax, [ebp - 0xe8]
push eax
call fcn.00409b60
mov dword [ebp - 4], 0x12
push dword [ebp - 0x34]
lea eax, [ebp - 0xe0]
push ecx
push 0x5967ac
push ecx
push str.CFFConfig::ReWritePrefFile_____WriteFile_failed._size_written_too_small
push eax
call fcn.00407390
add esp, 0xc
push eax
call fcn.00407390
add esp, 0xc
push eax
call fcn.004155d0
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0xe8]
call fcn.00407170
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x13
call fcn.00406a80
lea ecx, [ebp - 0x30]
call fcn.00409c40
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xe8]
call fcn.00407660
xor bl, bl
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x4e22f0
lea eax, [ebp - 0xe0]
push eax
mov dword [ebp - 4], 0x14
call fcn.004068d0
mov byte [ebp - 4], 0x15
call fcn.00462c28
lea esi, [ebp - 0x60]
call fcn.00406720
mov byte [ebp - 4], 0x16
cmp dword [eax + 0x18], 8
jb 0x4e26c6
mov esi, dword [eax + 4]
jmp 0x4e26c9
lea esi, [eax + 4]
lea eax, [ebp - 0xe0]
push 0x5950f8
push eax
call fcn.00407390
pop ecx
pop ecx
push esi
push eax
call fcn.00407390
pop ecx
pop ecx
push 0x5950f0
push eax
call fcn.00407390
pop ecx
pop ecx
push str.CFFConfig::ReWritePrefFile_____WriteFile_failed._size_written_too_small
push eax
call fcn.00407390
pop ecx
pop ecx
push 0x5967ac
push eax
call fcn.00407390
pop ecx
pop ecx
push dword [ebp - 0x34]
push eax
call fcn.004155d0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x15
call fcn.00409c40
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 0x4e276f
lea ecx, [ebp - 0x60]
lea eax, [ebp - 0xe0]
call fcn.00406700
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
lea ecx, [ebp - 0x60]
call fcn.00409c40
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.004067e0
jmp 0x4e2681
mov bl, 1
jmp 0x4e2683