Function at 0x43a14f
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448be7
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x56a8
call fcn.00440fd0
mov eax, dword [0x46a034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x567c], edi
cmp dword [edi + 8], ebx
jne 0x43a1cf
lea eax, [ebp - 0x5674]
push eax
lea ecx, [ebp - 0x56a8]
mov dword [ebp - 0x5674], str.No_file_to_unzip
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
push 0x45d25c
lea eax, [ebp - 0x56a8]
push eax
call sub.MSVCR110.dll__CxxThrowException
test esi, esi
jne 0x43a1d6
lea esi, [edi + 0xc]
push esi
call fcn.0043a4c2
test eax, eax
jne 0x43a214
lea eax, [ebp - 0x5674]
push eax
lea ecx, [ebp - 0x568c]
mov dword [ebp - 0x5674], str.failed_CreateFolder
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
push 0x45d25c
lea eax, [ebp - 0x568c]
jmp 0x43a1c9
lea eax, [ebp - 0x5670]
push eax
mov ecx, edi
call fcn.00439ed8
lea eax, [ebp - 0x5670]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x5672], cx
je 0x43a487
push esi
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x222], cx
je 0x43a27c
push 0x44cc54
lea eax, [ebp - 0x220]
push eax
call esi
lea eax, [ebp - 0x5670]
push eax
lea eax, [ebp - 0x220]
push eax
call esi
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_StrDupW]
push 0x5c
mov esi, eax
pop eax
push eax
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov dword [ebp - 0x5674], ebx
test eax, eax
je 0x43a2c4
xor ecx, ecx
mov word [eax], cx
push esi
mov ecx, edi
call fcn.0043a4c2
mov dword [ebp - 0x5674], eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x5674], ebx
jne 0x43a30a
lea eax, [ebp - 0x5674]
push eax
lea ecx, [ebp - 0x569c]
mov dword [ebp - 0x5674], str.failed_CreateFilePath
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
push 0x45d25c
lea eax, [ebp - 0x569c]
jmp 0x43a1c9
cmp byte [edi + 4], bl
je 0x43a32f
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x43a32f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x43a487
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x5690], esi
push str.failed_CreateFile
lea ecx, [ebp - 0x5238]
mov dword [ebp - 4], ebx
call fcn.0040221e
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
jne 0x43a37a
lea ecx, [ebp - 0x5238]
call fcn.004340d3
lea ecx, [ebp - 0x5238]
mov byte [ebp - 4], bl
call fcn.00402286
mov ecx, dword [edi + 8]
sub esp, 0xc
call fcn.0043b14c
add esp, 0xc
mov ecx, eax
call fcn.00439c41
mov byte [ebp - 4], 2
push ecx
mov ecx, dword [edi + 8]
lea edx, [ebp - 0x5220]
call fcn.0043b278
pop ecx
mov dword [ebp - 0x5674], eax
test eax, eax
jle 0x43a458
push str.WriteFile_error
lea ecx, [ebp - 0x5238]
mov dword [ebp - 0x5678], ebx
call fcn.0040221e
push ebx
lea eax, [ebp - 0x5678]
push eax
mov byte [ebp - 4], 3
push dword [ebp - 0x5674]
lea eax, [ebp - 0x5220]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43a404
lea ecx, [ebp - 0x5238]
call fcn.004340d3
lea ecx, [ebp - 0x5238]
mov byte [ebp - 4], 2
call fcn.00402286
mov eax, dword [ebp - 0x5674]
cmp dword [ebp - 0x5678], eax
je 0x43a3a1
lea eax, [ebp - 0x5680]
push eax
lea ecx, [ebp - 0x56b4]
mov dword [ebp - 0x5680], str.dwBytesWritten___nRet
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
push 0x45d25c
lea eax, [ebp - 0x56b4]
jmp 0x43a1c9
mov dword [ebp - 4], ebx
mov ecx, dword [edi + 8]
call fcn.0043b4b1
test esi, esi
je 0x43a46e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 5
push dword [ebp - 0x5254]
lea eax, [ebp - 0x220]
push eax
call fcn.0043a541
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043dcae
leave
ret 8