Function at 0x4b9706
Capabilities:
Write file on windows

Disassembly:
push ebp
sub esp, 0x4c
lea ebp, [esp - 4]
mov eax, dword [0x601328]
xor eax, ebp
mov dword [ebp + 0x4c], eax
push 0x8c
mov eax, 0x56ea05
call fcn.0054d40c
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
mov edi, ecx
mov esi, edx
call ebx
cmp dword [esi + 0x18], 8
jb 0x4b9740
mov eax, dword [esi + 4]
jmp 0x4b9743
lea eax, [esi + 4]
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 + 0x20], eax
cmp eax, 0xffffffff
jne 0x4b9920
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.00462c28
cmp byte [eax], 0
jne 0x4b97ff
lea eax, [ebp - 0x98]
push eax
call fcn.00409b60
push edi
push 0x5967ac
lea eax, [ebp - 0x90]
push str.CFirefoxBrowser::WriteFile___CreateFile_failed._GetLastError
push eax
mov dword [ebp - 4], esi
call fcn.00407390
pop ecx
pop ecx
push eax
call fcn.00407390
pop ecx
pop ecx
push eax
call fcn.004155d0
lea ecx, [ebp + 0x30]
lea eax, [ebp - 0x98]
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 - 0x98]
call fcn.00407660
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4c]
xor ecx, ebp
call fcn.0054677c
add ebp, 0x50
leave
ret
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 4], 2
call fcn.004068d0
mov byte [ebp - 4], 3
call fcn.00462c28
lea esi, [ebp]
call fcn.00406720
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], 8
jb 0x4b9832
mov esi, dword [eax + 4]
jmp 0x4b9835
lea esi, [eax + 4]
lea eax, [ebp - 0x90]
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.CFirefoxBrowser::WriteFile___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]
mov byte [ebp - 4], 3
call fcn.00409c40
lea eax, [ebp + 0x1c]
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 + 0x1c]
mov byte [ebp - 4], 5
call sub.log4cplusU.dll_public:_bool___thiscall_log4cplus::Logger::isEnabledFor_int_const
test al, al
je 0x4b98d9
lea ecx, [ebp]
lea eax, [ebp - 0x90]
call fcn.00406700
push 0x2dd
push str..FirefoxBrowser.cpp
push eax
push esi
lea ecx, [ebp + 0x1c]
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]
call fcn.00409c40
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 3
call sub.log4cplusU.dll_public_virtual:_void___thiscall_log4cplus::Logger::destructor_void_
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 2
call fcn.004067e0
jmp 0x4b97e0
push esi
call ebx
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
mov dword [ebp + 0x2c], esi
jb 0x4b9934
mov eax, dword [edi + 4]
jmp 0x4b9937
lea eax, [edi + 4]
push esi
lea edx, [ebp + 0x2c]
push edx
push ecx
push eax
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4b9afb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.00462c28
cmp byte [eax], 0
jne 0x4b99da
lea eax, [ebp - 0x98]
push eax
call fcn.00409b60
push edi
push 0x5967ac
lea eax, [ebp - 0x90]
push str.CFirefoxBrowser::WriteFile___WriteFile_failed._GetLastError
push eax
mov dword [ebp - 4], 9
call fcn.00407390
pop ecx
pop ecx
push eax
call fcn.00407390
pop ecx
pop ecx
push eax
call fcn.004155d0
lea ecx, [ebp + 0x30]
lea eax, [ebp - 0x98]
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 - 0x98]
call fcn.00407660
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b97e0
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 4], 0xb
call fcn.004068d0
mov byte [ebp - 4], 0xc
call fcn.00462c28
lea esi, [ebp]
call fcn.00406720
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x18], 8
jb 0x4b9a0d
mov esi, dword [eax + 4]
jmp 0x4b9a10
lea esi, [eax + 4]
lea eax, [ebp - 0x90]
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.CFirefoxBrowser::WriteFile___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]
mov byte [ebp - 4], 0xc
call fcn.00409c40
lea eax, [ebp + 0x24]
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 + 0x24]
mov byte [ebp - 4], 0xe
call sub.log4cplusU.dll_public:_bool___thiscall_log4cplus::Logger::isEnabledFor_int_const
test al, al
je 0x4b9ab4
lea ecx, [ebp]
lea eax, [ebp - 0x90]
call fcn.00406700
push 0x2e5
push str..FirefoxBrowser.cpp
push eax
push esi
lea ecx, [ebp + 0x24]
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]
call fcn.00409c40
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 0xc
call sub.log4cplusU.dll_public_virtual:_void___thiscall_log4cplus::Logger::destructor_void_
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 0xb
call fcn.004067e0
jmp 0x4b99cc
mov edi, dword [edi + 0x14]
cmp dword [ebp + 0x2c], edi
jae 0x4b9cb3
call fcn.00462c28
cmp byte [eax], 0
jne 0x4b9b90
lea eax, [ebp - 0x98]
push eax
call fcn.00409b60
mov dword [ebp - 4], 0x12
push dword [ebp + 0x2c]
lea eax, [ebp - 0x90]
push 0x5967ac
push str.CFirefoxBrowser::WriteFile_____WriteFile_failed._size_written_too_small
push eax
call fcn.00407390
pop ecx
pop ecx
push eax
call fcn.00407390
pop ecx
pop ecx
push eax
call fcn.004155d0
lea ecx, [ebp + 0x30]
lea eax, [ebp - 0x98]
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 - 0x98]
call fcn.00407660
xor bl, bl
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x4b97e2
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 4], 0x14
call fcn.004068d0
mov byte [ebp - 4], 0x15
call fcn.00462c28
lea esi, [ebp]
call fcn.00406720
mov byte [ebp - 4], 0x16
cmp dword [eax + 0x18], 8
jb 0x4b9bc3
mov esi, dword [eax + 4]
jmp 0x4b9bc6
lea esi, [eax + 4]
lea eax, [ebp - 0x90]
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.CFirefoxBrowser::WriteFile_____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 + 0x2c]
push eax
call fcn.004155d0
lea ecx, [ebp]
mov byte [ebp - 4], 0x15
call fcn.00409c40
lea eax, [ebp + 0x24]
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 + 0x24]
mov byte [ebp - 4], 0x17
call sub.log4cplusU.dll_public:_bool___thiscall_log4cplus::Logger::isEnabledFor_int_const
test al, al
je 0x4b9c6c
lea ecx, [ebp]
lea eax, [ebp - 0x90]
call fcn.00406700
push 0x2eb
push str..FirefoxBrowser.cpp
push eax
push esi
lea ecx, [ebp + 0x24]
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]
call fcn.00409c40
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 0x15
call sub.log4cplusU.dll_public_virtual:_void___thiscall_log4cplus::Logger::destructor_void_
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 0x14
call fcn.004067e0
jmp 0x4b9b7e
mov bl, 1
jmp 0x4b9b80