Function at 0x477c70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d20f7
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x501230]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov al, byte [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x78], ebx
mov byte [ebp - 0x72], al
cmp byte [esi + 0x128], bl
jne 0x477f4c
cmp dword [esi + 0x12c], ebx
jne 0x477f4c
mov dword [ebp - 0x84], ebx
mov byte [ebp - 0x80], bl
mov dword [ebp - 0x7c], 0x4e2238
cmp dword [esi + 0xc0], ebx
je 0x477d58
push ebx
lea edi, [esi + 0xb0]
push edi
lea ecx, [ebp - 0x58]
call fcn.00469070
lea eax, [ebp - 0x84]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x58]
mov ebx, 1
push eax
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x78], ebx
push eax
call dword [sym.imp.boost_filesystem.dll_class_boost::filesystem::file_status___cdecl_boost::filesystem::detail::status_class_boost::filesystem::path_const___class_boost::system::error_code__]
add esp, 0xc
lea ecx, [ebp - 0x8c]
call dword [sym.imp.boost_filesystem.dll_public:_enum_boost::filesystem::file_type___thiscall_boost::filesystem::file_status::type_void_]
cmp eax, 3
je 0x477d58
push 0
push edi
lea ecx, [ebp - 0x28]
call fcn.00469070
mov ebx, 3
mov dword [ebp - 0x78], ebx
lea eax, [ebp - 0x84]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.boost_filesystem.dll_bool___cdecl_boost::filesystem::detail::create_directories_class_boost::filesystem::path_const___class_boost::system::error_code__]
add esp, 8
mov byte [ebp - 0x71], 1
test al, al
je 0x477d5c
mov byte [ebp - 0x71], 0
test bl, 2
je 0x477d6d
lea ecx, [ebp - 0x28]
and ebx, 0xfffffffd
call dword [sym.imp.boost_filesystem.dll_public:_void___thiscall_boost::filesystem::path::destructor_void_]
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x477d82
lea ecx, [ebp - 0x58]
call dword [sym.imp.boost_filesystem.dll_public:_void___thiscall_boost::filesystem::path::destructor_void_]
cmp byte [ebp - 0x71], 0
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
je 0x477def
mov ecx, dword [ebp - 0x7c]
push dword [ebp - 0x84]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
cmp eax, fcn.00429cf0
jne 0x477dae
lea eax, [ebp - 0x28]
push eax
call fcn.00429cf0
jmp 0x477db7
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x7c]
call eax
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
lea eax, [esi + 0xb0]
cmovae ecx, dword [ebp - 0x28]
cmp dword [eax + 0x14], 0x10
jb 0x477dd0
mov eax, dword [eax]
push ecx
push eax
push str.Logger:_Cant_create_directory__s:__s_n
push 2
call edi
add esp, 4
push eax
call fcn.004020f0
add esp, 0x10
lea ecx, [ebp - 0x28]
call fcn.00403c80
mov edx, dword [esi + 0xc0]
lea ecx, [esi + 0xb0]
mov eax, closesocket
sub eax, edx
cmp eax, 1
jb 0x477f6a
cmp dword [ecx + 0x14], 0x10
mov eax, ecx
jb 0x477e15
mov eax, dword [ecx]
push 1
push 0x4e73f4
push edx
push eax
push ecx
push dword [ebp - 0x78]
lea ecx, [ebp - 0x70]
call fcn.00403ac0
lea eax, [esi + 0x98]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00469420
add esp, 0xc
lea ecx, [ebp - 0x70]
call fcn.00403c80
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
mov edx, 0x4da8a4
mov eax, 0x4e8fd8
cmovae ecx, dword [ebp - 0x40]
cmp byte [ebp - 0x72], 0
cmove eax, edx
push eax
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [esi + 0x12c], eax
test eax, eax
jne 0x477ea7
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push str.Logger:_Cannot_open__s_n
push 2
call edi
add esp, 4
push eax
call fcn.004020f0
add esp, 0xc
jmp 0x477f44
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
add esp, 8
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x477edc
push str.Logger:_Failed_to_set_handle_information_n
push 2
call edi
add esp, 4
push eax
call fcn.004020f0
add esp, 8
push 0
push dword [esi + 0x12c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_setbuf]
mov ecx, dword [esi + 0x30]
add esp, 8
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
test ecx, ecx
je 0x477f14
cmp dword [esi + 0x34], 0x10
lea eax, [esi + 0x20]
jb 0x477f05
mov eax, dword [eax]
push dword [esi + 0x12c]
push 1
push ecx
push eax
call edi
add esp, 0x10
push dword [esi + 0x12c]
push 1
push 1
push 0x4e9024
call edi
lea eax, [esi + 8]
add esp, 0x10
cmp dword [eax + 0x14], 0x10
jb 0x477f33
mov eax, dword [eax]
push dword [esi + 0x12c]
push 1
push dword [esi + 0x18]
push eax
call edi
add esp, 0x10
lea ecx, [ebp - 0x40]
call fcn.00403c80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c75e8
mov esp, ebp
pop ebp
ret 4
call fcn.00404080
int3