Function at 0x40b900
Capabilities:
Check if file exists
Create directory
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46eddc
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x483390]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
mov eax, dword [0x483390]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
push str.CRsWork::DoUnCompressFiles
mov esi, ecx
push 0x473ab0
push 0x80
mov dword [esp + 0x2c], esi
call fcn.00431310
mov eax, dword [esi + 0xa4]
add esp, 0xc
sub eax, 0x10
call fcn.00403350
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
xor edi, edi
push ebx
mov dword [esp + 0x154], edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40b9dc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40b9dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateDirectory____failed_lastError_d
push 0x80
call fcn.00431310
add ebx, 0xfffffff0
add esp, 0xc
mov dword [esp + 0x150], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b9d2
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, 0x2714
jmp 0x40bb2a
push 0x103
lea ecx, [esp + 0x39]
push edi
push ecx
mov byte [esp + 0x40], 0
call fcn.00446e10
add esp, 0xc
push 0x104
lea edx, [esp + 0x38]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
push edi
push 3
push edi
push 3
push SysReAllocStringLen
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ba5d
push ebx
call fcn.004065d0
add esp, 4
add ebx, 0xfffffff0
mov dword [esp + 0x150], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ba53
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, 0x2715
jmp 0x40bb2a
lea eax, [esp + 0x30]
push eax
push esi
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [ebx - 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, edi
or eax, ecx
jge 0x40ba94
mov ecx, edi
lea eax, [esp + 0x14]
call fcn.004034e0
mov ebx, dword [esp + 0x14]
test edi, edi
jl 0x40bd8c
cmp edi, dword [ebx - 8]
jg 0x40bd8c
mov dword [ebx - 0xc], edi
push ebx
mov byte [edi + ebx], 0
call fcn.00407800
mov edi, eax
mov eax, dword [ebx - 0xc]
add esp, 4
mov ecx, edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ecx
test eax, eax
jl 0x40bd8c
cmp eax, dword [ebx - 8]
jg 0x40bd8c
mov byte [eax + ebx], 0
mov eax, dword [esp + 0x1c]
mov edx, 2
mul edx
cmp ecx, edx
ja 0x40bb4e
jb 0x40baee
cmp edi, eax
jae 0x40bb4e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.004065d0
add ebx, 0xfffffff0
add esp, 4
mov dword [esp + 0x150], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40bb25
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, 0x2716
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004426a0
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
push str._rav.7z
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040bfc0
add esp, 8
mov edi, dword [esp + 0x10]
mov eax, esi
call fcn.00407130
mov ecx, eax
mov eax, edi
mov edi, esi
call fcn.00407080
push esi
test eax, eax
jg 0x40bbb6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x150], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ba2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40ba2c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], 0
mov byte [esp + 0x150], 2
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00404840
test eax, eax
jne 0x40bc13
mov byte [esp + 0x150], 1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40bbf7
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x10]
call fcn.004031d0
lea ecx, [esp + 0x14]
call fcn.004031d0
mov eax, 0x2718
jmp 0x40bb2a
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push ecx
push edx
add eax, 0x20
push eax
push ebx
lea ecx, [esp + 0x28]
call fcn.004049f0
test eax, eax
je 0x40bcc8
mov byte [esp + 0x150], 1
cmp eax, 0x80004004
jne 0x40bc72
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40bc56
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x10]
call fcn.004031d0
lea ecx, [esp + 0x14]
call fcn.004031d0
mov eax, 0x80004004
jmp 0x40bb2a
cmp eax, 0x81000001
mov eax, dword [esp + 0x18]
jne 0x40bca0
test eax, eax
je 0x40bc89
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x10]
call fcn.004031d0
lea ecx, [esp + 0x14]
call fcn.004031d0
jmp 0x40bb25
test eax, eax
je 0x40bcac
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x10]
call fcn.004031d0
lea ecx, [esp + 0x14]
call fcn.004031d0
mov eax, 0x2717
jmp 0x40bb2a
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea esi, [esp + 0x1c]
call fcn.00403110
push ebx
push str._sLabel.dat
mov edi, esi
mov byte [esp + 0x158], 3
call fcn.004035e0
mov ebx, dword [esp + 0x24]
add esp, 8
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40bd29
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x40]
cmp dword [eax - 0xc], 8
jl 0x40bd52
mov ecx, dword [ecx + 0xac]
push eax
mov edx, ebx
call fcn.00407df0
add esp, 4
push eax
push str.ModifyLaelDat..._d
jmp 0x40bd45
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0xac]
mov eax, dword [eax + 0x40]
push eax
call fcn.004079b0
add esp, 4
push eax
push str.MakeLabelDat..._d
push 0x80
call fcn.00431310
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.004031d0
mov byte [esp + 0x150], 1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40bd73
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x10]
call fcn.004031d0
lea ecx, [esp + 0x14]
call fcn.004031d0
xor eax, eax
jmp 0x40bb2a
push 0x80070057
call fcn.00401000
int3