Function at 0x40b540
Capabilities:
Check if file exists
Create directory
Get file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x46ee28
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x483390]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
push str.CRsWork::ReleaseDui
push 0x473ab0
push 0x80
call fcn.00431310
mov ecx, dword [esp + 0x48]
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
call fcn.00403130
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.00403350
lea esi, [eax + 0x10]
mov dword [esp + 0x3c], esi
push str._ravduiskin.7z
lea ecx, [esp + 0x20]
push ecx
mov edx, 0xe
mov byte [esp + 0x3c], 1
call fcn.0040c470
mov edi, 1
cmp dword [esi - 4], edi
jle 0x40b5dc
mov edx, dword [esi - 0xc]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00403530
mov esi, dword [esp + 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40b5ec
test al, 0x10
jne 0x40b649
cmp dword [esi - 4], edi
jle 0x40b603
mov ecx, dword [esi - 0xc]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00403530
mov esi, dword [esp + 0x3c]
mov ecx, esi
call fcn.00406780
cmp dword [esi - 4], edi
jle 0x40b621
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00403530
mov esi, dword [esp + 0x3c]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40b667
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReleaseDUI_CreateDir_FAILED_Error___d
push 0x80
call fcn.00431310
add esp, 0xc
jmp 0x40b667
cmp dword [esi - 4], edi
jle 0x40b660
mov edx, dword [esi - 0xc]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00403530
mov esi, dword [esp + 0x3c]
mov ecx, esi
call fcn.00406780
mov eax, dword [esp + 0x1c]
cmp dword [eax - 4], edi
jle 0x40b682
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00403530
mov eax, dword [esp + 0x1c]
call fcn.00407720
test eax, eax
je 0x40b667
mov eax, dword [esp + 0x1c]
cmp dword [eax - 4], edi
jle 0x40b6a6
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00403530
mov eax, dword [esp + 0x1c]
push eax
call fcn.00407800
add esp, 4
push 0
push 0
push 3
push 0
push 0
mov ebx, edx
mov edx, dword [esp + 0x30]
push 0x40000000
push edx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
jne 0x40b6e5
push eax
push str.Error
push str.Open_Res_pack_Failed
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0
push 0
push edi
mov byte [esp + 0x28], 0x37
mov byte [esp + 0x29], 0x7a
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x2c]
push eax
push 2
lea ecx, [esp + 0x24]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov dword [esp + 0x20], edi
mov byte [esp + 0x34], 2
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00404840
test eax, eax
jne 0x40b7bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push str.7z_Open_File_failed_PATH_s_Error__d
push 0x80
call fcn.00431310
add esp, 0x10
mov byte [esp + 0x34], 1
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x40b76d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x34], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b78e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b7b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40b888
push ebx
push ebp
lea ecx, [esp + 0x2c]
push ecx
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], edi
call fcn.004049f0
cmp eax, edi
je 0x40b825
cmp eax, 0x81000001
jne 0x40b7f4
push str.ReleaseDui_No_Have_Enough_disk_space_
push 0x80
call fcn.00431310
add esp, 8
jmp 0x40b758
push eax
push str.ReleaseDui_File_Extract_failed__Error__d
push 0x80
call fcn.00431310
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, edi
je 0x40b76d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x40b76d
mov byte [esp + 0x34], 1
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x40b83a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esi - 0x10]
mov byte [esp + 0x34], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b85b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b883
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4