Function at 0x423006
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
push esi
lea eax, [ebp - 0x154]
push edi
mov edi, ecx
push eax
call fcn.00422a86
lea eax, [ebp - 0x154]
push eax
call fcn.0040df52
test al, al
pop ecx
je 0x42362c
xor ebx, ebx
lea eax, [ebp - 0x154]
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x20], esi
je 0x42362c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 2
push ebx
push 0xfffffffffffffffc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], eax
call esi
lea eax, [ebp - 0x40]
push ebx
push eax
lea eax, [ebp - 0x30]
push 4
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x20]
call esi
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x30]
sub eax, 4
push eax
mov dword [ebp - 4], eax
call fcn.00424dd9
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
jne 0x4230c1
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42362c
lea ecx, [ebp - 0x40]
push ebx
push ecx
push dword [ebp - 4]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x20]
call esi
lea ecx, [ebp - 0x14]
call fcn.0041bdc5
push dword [ebp - 4]
lea ecx, [ebp - 0x14]
push dword [ebp - 8]
call fcn.0041c047
lea ecx, [ebp - 0x14]
call fcn.0041c2e0
test al, al
je 0x42361b
lea ecx, [ebp - 0x14]
call fcn.0041c2e0
test al, al
je 0x42361b
cmp dword [ebp - 0x14], 2
jb 0x42361b
lea ecx, [ebp - 0x3c]
call fcn.0041bdc5
push ebx
lea ecx, [ebp - 0x14]
call fcn.0041bfe3
cmp al, 0x5c
jne 0x423166
push 1
lea ecx, [ebp - 0x14]
call fcn.0041bfe3
push 2
lea ecx, [ebp - 0x14]
call fcn.0041c8fd
lea esi, [eax + 6]
lea ecx, [ebp - 0x14]
push esi
push ebx
call fcn.0041cc95
push eax
lea ecx, [ebp - 0x3c]
call fcn.0041bf80
push esi
push ebx
lea ecx, [ebp - 0x14]
call fcn.0041c3a9
xor esi, esi
cmp dword [ebp - 0x14], ebx
mov byte [ebp - 0x19], bl
jbe 0x42329c
push esi
lea ecx, [ebp - 0x14]
call fcn.0041bfe3
cmp al, 0xd
je 0x42318c
inc esi
cmp esi, dword [ebp - 0x14]
jb 0x423174
jmp 0x42329c
cmp esi, 0xffffffff
je 0x42329c
push esi
push ebx
lea ecx, [ebp - 0x14]
call fcn.0041cc95
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041be99
push ebx
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0041c6ad
mov esi, eax
cmp esi, 0xffffffff
je 0x423294
lea ecx, [ebp - 0x2c]
call fcn.0041cd1e
lea eax, [eax + esi + 1]
push eax
push 0x42dbe0
mov dword [ebp - 4], eax
call fcn.00424a30
pop ecx
test eax, eax
pop ecx
jge 0x4231e1
mov byte [ebp - 0x19], 1
cmp byte [edi + 0x92], bl
jne 0x423294
push dword [ebp - 4]
push 0x42dbdc
call fcn.00424a30
pop ecx
test eax, eax
pop ecx
jge 0x423294
inc esi
lea ecx, [ebp - 0x14]
push esi
push ebx
call fcn.0041c6ad
mov dword [ebp - 8], eax
inc eax
push eax
push ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], eax
call fcn.0041c6ad
cmp dword [ebp - 8], 0xffffffff
mov esi, eax
je 0x423294
cmp esi, 0xffffffff
je 0x423294
push 0x47e5f8
mov ecx, 0x47dfb8
call fcn.0041a81a
push 0x7fffffff
push 0x47e5f8
mov ecx, 0x47dfb8
call fcn.0041b3b9
sub esi, dword [ebp - 8]
lea ecx, [ebp - 0x14]
dec esi
push esi
push dword [ebp - 4]
call fcn.0041cc95
push eax
lea ecx, [ebp - 0x50]
call fcn.0041be99
push esi
lea ecx, [ebp - 0x14]
push dword [ebp - 4]
call fcn.0041c3a9
push ebx
mov ecx, 0x47e5f8
push dword [ebp - 4]
call fcn.0041cd1e
push eax
lea ecx, [ebp - 0x14]
call fcn.0041ca20
lea ecx, [ebp - 0x50]
call fcn.0041befb
lea ecx, [ebp - 0x2c]
call fcn.0041befb
push 1
push ebx
push str.Backups:_r_n
lea ecx, [ebp - 0x14]
call fcn.0041c6d0
push 1
push ebx
push str.Files:_r_n
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.0041c6d0
cmp eax, esi
jge 0x4232ca
push dword [ebp - 0x20]
jmp 0x42360b
push 1
mov esi, str.Shared:_r_n
push ebx
push esi
lea ecx, [ebp - 0x14]
call fcn.0041c6d0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 4], eax
call esi
mov ecx, dword [ebp - 4]
add ecx, eax
cmp dword [edi + 0x7c], ebx
mov dword [ebp - 0x18], ecx
jle 0x42337e
mov dword [ebp - 8], ebx
push ebx
push dword [edi + 0x8c]
call fcn.0040df1f
pop ecx
cmp eax, ebx
pop ecx
je 0x423376
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041be35
cmp byte [ebp - 0x19], bl
jne 0x42333a
push ebx
push 0x7c
lea ecx, [ebp - 0x2c]
call fcn.0041c6ad
cmp eax, 0xffffffff
je 0x42333a
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041c3a9
push ebx
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x18]
call fcn.0041cd1e
push eax
lea ecx, [ebp - 0x14]
call fcn.0041ca20
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
add eax, ecx
push ebx
push eax
push 0x42bc40
lea ecx, [ebp - 0x14]
call fcn.0041ca20
inc dword [ebp - 8]
lea ecx, [ebp - 0x2c]
call fcn.0041befb
push dword [ebp - 8]
jmp 0x4232fc
lea ecx, [edi + 0x78]
call fcn.0041cff1
cmp dword [edi + 0x54], ebx
jbe 0x423416
push 1
push ebx
push str.Backups:_r_n
lea ecx, [ebp - 0x14]
call fcn.0041c6d0
push str.Backups:_r_n
mov dword [ebp - 8], eax
call esi
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ebx
add ecx, eax
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x2c]
call fcn.0041bdc5
push dword [ebp - 4]
lea ecx, [edi + 0x54]
call fcn.0041c9d2
test al, al
je 0x423401
lea eax, [ebp - 0x2c]
lea ecx, [edi + 0x54]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0041c92f
push ebx
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x18]
call fcn.0041cd1e
push eax
lea ecx, [ebp - 0x14]
call fcn.0041ca20
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
add eax, ecx
push ebx
push eax
push 0x42bc40
lea ecx, [ebp - 0x14]
call fcn.0041ca20
jmp 0x4233b4
push 0x42e0c8
lea ecx, [edi + 0x54]
call fcn.0041bf12
lea ecx, [ebp - 0x2c]
call fcn.0041befb
cmp dword [edi + 0x10], ebx
jle 0x423486
push 1
push ebx
push str.Files:_r_n
lea ecx, [ebp - 0x14]
call fcn.0041c6d0
push str.Files:_r_n
mov dword [ebp - 4], eax
call esi
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ebx
add ecx, eax
push ebx
mov dword [ebp - 0x18], ecx
push dword [edi + 0x20]
call fcn.0040df1f
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x42347e
push ebx
lea ecx, [ebp - 0x14]
push dword [ebp - 0x18]
push eax
call fcn.0041ca20
push ebx
push dword [ebp - 4]
call esi
add eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push 0x42bc40
call fcn.0041ca20
inc dword [ebp - 8]
push dword [ebp - 8]
jmp 0x423441
lea ecx, [edi + 0xc]
call fcn.0041cff1
cmp dword [edi + 0x28], ebx
jle 0x4234f6
push 1
push ebx
push str.Directories:_r_n
lea ecx, [ebp - 0x14]
call fcn.0041c6d0
push str.Directories:_r_n
mov dword [ebp - 4], eax
call esi
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ebx
add ecx, eax
push ebx
mov dword [ebp - 0x18], ecx
push dword [edi + 0x38]
call fcn.0040df1f
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x4234ee
push ebx
lea ecx, [ebp - 0x14]
push dword [ebp - 0x18]
push eax
call fcn.0041ca20
push ebx
push dword [ebp - 4]
call esi
add eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push 0x42bc40
call fcn.0041ca20
inc dword [ebp - 8]
push dword [ebp - 8]
jmp 0x4234b1
lea ecx, [edi + 0x24]
call fcn.0041cff1
push 1
push ebx
push str.Registry:_r_n
lea ecx, [ebp - 0x14]
call fcn.0041c6d0
push str.Registry:_r_n
mov dword [ebp - 4], eax
call esi
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0x14]
add esi, eax
mov eax, dword [ebp - 0x14]
sub eax, esi
push eax
push esi
call fcn.0041cc95
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041be99
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
sub eax, esi
push eax
push esi
call fcn.0041c3a9
lea ecx, [ebp - 0x2c]
mov dword [ebp - 8], ebx
call fcn.0041cd1e
cmp dword [ebp - 0x2c], ebx
mov dword [ebp - 0x18], eax
mov esi, 0x47e490
jbe 0x423579
mov dword [ebp - 4], 0x47e380
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 4]
call fcn.00422acb
add dword [ebp - 4], 0x44
cmp dword [ebp - 4], esi
jl 0x42355b
cmp dword [edi + 0x40], ebx
jg 0x423583
cmp dword [edi + 0x64], ebx
jle 0x42358a
mov ecx, edi
call fcn.00421988
mov dword [ebp - 4], 0x47e380
push dword [ebp - 4]
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.00421b6d
add dword [ebp - 4], 0x44
cmp dword [ebp - 4], esi
jl 0x423591
lea ecx, [ebp - 0x2c]
call fcn.0041befb
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x3c]
push eax
call fcn.0041c0c5
lea ecx, [ebp - 0x3c]
call fcn.0041c22f
lea ecx, [ebp - 0x3c]
call fcn.0041c22f
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x14]
push eax
call fcn.0041bf80
lea eax, [ebp - 0x44]
push ebx
push eax
lea ecx, [ebp - 0x14]
push dword [ebp - 0x14]
call fcn.0041cd1e
mov edi, dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push edi
call esi
lea eax, [ebp - 0x44]
push ebx
push eax
lea eax, [ebp - 0x30]
push 4
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x3c]
call fcn.0041befb
jmp 0x423624
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x14]
call fcn.0041befb
pop edi
pop esi
mov al, 1
pop ebx
leave
ret