Function at 0x421fec
Capabilities:
Delete file
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov byte [ebp - 0x29], dl
mov byte [ebp - 9], al
lea esi, [ebp - 9]
xor ebx, ebx
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x48d340]
mov al, byte [edx + eax - 1]
cmp al, 1
jl 0x422690
xor edx, edx
mov dl, byte [esi]
mov ecx, dword [0x48d340]
cmp al, 3
jg 0x422690
mov eax, dword [0x48d818]
cmp byte [eax], 0
jne 0x422690
mov eax, dword [0x48d8b4]
cmp byte [eax], 0
jne 0x422690
cmp byte [ebp - 0x29], 0
jne 0x422065
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x48d408]
cmp dword [edx + eax*4 - 4], 0
jne 0x422690
lea ecx, [ebp - 0x23c]
lea edx, [ebp - 0x13c]
mov al, byte [esi]
call fcn.0041e3ac
cmp byte [ebp - 0x29], 0
jne 0x422200
lea eax, [ebp - 0x13c]
call fcn.00412584
test al, al
je 0x422200
lea eax, [ebp - 0x23c]
call fcn.00412584
test al, al
je 0x422200
lea eax, [ebp - 0x23c]
call fcn.00412ef8
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
add eax, 2
lea eax, [eax + eax*2]
add eax, 0x10
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4220d0
cmp eax, dword [esp]
pop edx
pop eax
jne 0x422200
mov edx, dword [ebp - 4]
mov al, byte [esi]
call fcn.0041f370
test al, al
je 0x422690
push 0x7f02
push 0
call sub.user32.dll_LoadCursorA
push eax
call sub.user32.dll_SetCursor
lea eax, [ebp - 0x23c]
mov ecx, 0x8000000
mov edx, 0x80000000
call fcn.0040eba4
mov edi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
add eax, 2
lea eax, [eax + eax*2]
add eax, 0x10
push eax
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x48d2e0]
mov eax, dword [edx + eax*4 - 4]
push eax
push edi
call sub.kernel32.dll__hread
mov ebx, eax
push edi
call sub.kernel32.dll_CloseHandle_1
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
push eax
call sub.user32.dll_SetCursor
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x48d2e0]
mov eax, dword [edx + eax*4 - 4]
mov edx, dword [0x48d5b8]
mov ecx, 0x10
call fcn.0040cd80
test al, al
jne 0x4221b6
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x48d2e0]
mov eax, dword [edx + eax*4 - 4]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
add edx, 2
lea edx, [edx + edx*2]
add edx, 0x10
call fcn.00405a9c
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x48d2e0]
mov eax, dword [edx + eax*4 - 4]
mov edx, dword [0x48d5b8]
mov ecx, 0x10
call fcn.00405a94
jmp 0x42221c
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
add eax, 2
lea eax, [eax + eax*2]
add eax, 0x10
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4221db
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x4221f9
jmp 0x4221df
pop edx
pop eax
jle 0x4221f9
lea edx, [ebp - 0x23c]
mov ax, 2
call fcn.0040de10
push edi
call sub.kernel32.dll_CloseHandle_1
jmp 0x422626
mov bl, 2
jmp 0x42254c
cmp byte [ebp - 0x29], 0
je 0x422690
mov edx, dword [ebp - 4]
mov al, byte [esi]
call fcn.0041f370
test al, al
je 0x422690
mov eax, dword [0x48d8b4]
mov byte [eax], 1
mov eax, dword [0x48db2c]
cmp byte [eax], 0
je 0x422236
mov eax, dword [0x48d1d8]
mov byte [eax], 0
mov ax, 0x220
call fcn.0040bc04
mov edx, eax
mov eax, dword [0x48d948]
call fcn.00405c48
mov eax, dword [0x48d948]
xor edx, edx
call fcn.0040e810
mov dl, byte [ebp - 0x29]
mov eax, dword [ebp - 4]
call fcn.0041f698
mov ebx, eax
test ebx, ebx
je 0x422626
mov al, byte [esi]
call fcn.0041e474
lea eax, [ebp - 0x13c]
push eax
call sub.kernel32.dll_DeleteFileA_1
push 0
lea eax, [ebp - 0x13c]
push eax
call sub.kernel32.dll__lcreat
mov ebx, eax
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x48d250]
mov dword [edx + eax*4 - 4], ebx
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x48d250]
cmp ebx, 0xffffffff
jne 0x4222d9
call sub.kernel32.dll_GetLastError_1
call fcn.0040f5f0
mov eax, dword [0x48da44]
mov edx, 1
call fcn.00411d74
lea edx, [ebp - 0x13c]
mov ax, 3
call fcn.0040de10
jmp 0x422626
push 0x10
mov eax, dword [0x48d588]
push eax
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x48d250]
mov eax, dword [edx + eax*4 - 4]
push eax
call sub.kernel32.dll__hwrite
lea eax, [ebp - 0x3c]
push eax
call sub.kernel32.dll_GetSystemTimeAsFileTime
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x3c]
push eax
call sub.kernel32.dll_FileTimeToLocalFileTime
push 8
lea eax, [ebp - 0x34]
push eax
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x48d250]
mov eax, dword [edx + eax*4 - 4]
push eax
call sub.kernel32.dll__hwrite
mov eax, dword [0x48d318]
xor edx, edx
mov dword [eax], edx
mov dword [eax + 4], edx
push 8
mov eax, dword [0x48d318]
push eax
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x48d250]
mov eax, dword [edx + eax*4 - 4]
push eax
call sub.kernel32.dll__hwrite
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov al, byte [esi]
call fcn.0040cdd0
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x48d340]
cmp byte [edx + eax - 1], 3
jne 0x422386
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x14], eax
jmp 0x422394
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x14], 1
mov eax, dword [0x48d2b0]
cmp byte [eax], 0
je 0x4223a5
mov byte [0x49a60e], 1
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x20]
mov edx, dword [ebp - 4]
mov al, byte [esi]
call fcn.0041cf4c
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], ebx
test al, al
je 0x422434
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 8]
mov dword [ebp - 0x20], eax
push ebp
mov eax, dword [0x48da44]
mov edx, dword [ebp - 0x14]
call fcn.00421984
pop ecx
mov ebx, eax
push 0
push 0
push 0x18
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x48d250]
mov eax, dword [edx + eax*4 - 4]
push eax
call sub.kernel32.dll_SetFilePointer_1
push 4
lea eax, [ebp - 0x24]
push eax
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x48d250]
mov eax, dword [edx + eax*4 - 4]
push eax
call sub.kernel32.dll__hwrite
push 4
lea eax, [ebp - 0x28]
push eax
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x48d250]
mov eax, dword [edx + eax*4 - 4]
push eax
call sub.kernel32.dll__hwrite
jmp 0x422436
xor ebx, ebx
test bl, bl
je 0x422443
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x1c], edx
cmp byte [0x49a60e], 0
je 0x422465
mov byte [0x49a60e], 0
mov eax, dword [0x49a608]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [0x49a608], eax
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x48d250]
mov eax, dword [edx + eax*4 - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
test bl, bl
jne 0x42249a
lea eax, [ebp - 0x13c]
push eax
call sub.kernel32.dll_DeleteFileA_1
lea eax, [ebp - 0x23c]
push eax
call sub.kernel32.dll_DeleteFileA_1
jmp 0x422626
push 0x7f02
push 0
call sub.user32.dll_LoadCursorA
push eax
call sub.user32.dll_SetCursor
push 0
lea eax, [ebp - 0x23c]
push eax
call sub.kernel32.dll__lcreat
mov edi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
add eax, 2
lea eax, [eax + eax*2]
add eax, 0x10
push eax
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x48d2e0]
mov eax, dword [edx + eax*4 - 4]
push eax
push edi
call sub.kernel32.dll__hwrite
mov edx, dword [0x48d498]
mov dword [edx], eax
push edi
call sub.kernel32.dll_CloseHandle_1
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
push eax
call sub.user32.dll_SetCursor
mov eax, dword [0x48d498]
mov eax, dword [eax]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
add eax, 2
lea eax, [eax + eax*2]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x422528
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x422540
jmp 0x42252c
pop edx
pop eax
jle 0x422540
lea edx, [ebp - 0x23c]
mov ax, 3
call fcn.0040de10
jmp 0x422626
cmp byte [esi], 0x1a
ja 0x42254c
mov eax, dword [ebp - 8]
inc eax
cmp eax, dword [ebp - 0x20]
lea eax, [ebp - 0x13c]
mov ecx, 0x10000000
mov edx, 0x80000000
call fcn.0040eba4
mov edi, eax
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x48d250]
mov dword [edx + eax*4 - 4], edi
push 0
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x48d250]
push edi
call sub.kernel32.dll_GetFileSize_1
xor edx, edx
mov dl, byte [esi]
mov ecx, dword [0x48d4c0]
mov dword [ecx + edx*4 - 4], eax
push 0
push 0
push 0
push 0x8000002
push 0
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x48d250]
mov eax, dword [edx + eax*4 - 4]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov edi, eax
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x48d2a8]
mov dword [edx + eax*4 - 4], edi
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x48d2a8]
test edi, edi
jne 0x4225f1
lea edx, [ebp - 0x13c]
mov ax, 9
call fcn.0040de10
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x48d408]
xor ecx, ecx
mov dword [edx + eax*4 - 4], ecx
jmp 0x422626
push 0
push 0
push 0
push 4
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x48d2a8]
push edi
call sub.kernel32.dll_MapViewOfFile
xor edx, edx
mov dl, byte [esi]
mov ecx, dword [0x48d408]
mov dword [ecx + edx*4 - 4], eax
call fcn.0040eb04
mov eax, dword [0x48d8b4]
mov byte [eax], 0
jmp 0x422690
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x48d2e0]
mov eax, dword [edx + eax*4 - 4]
test eax, eax
je 0x42265d
push 0x4000
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
add edx, 2
lea edx, [edx + edx*2]
add edx, 0x10
push edx
xor edx, edx
mov dl, byte [esi]
mov ecx, dword [0x48d2e0]
push eax
call sub.kernel32.dll_VirtualFree_1
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x48d2e0]
xor ecx, ecx
mov dword [edx + eax*4 - 4], ecx
mov edx, dword [0x48d408]
xor ecx, ecx
mov dword [edx + eax*4 - 4], ecx
mov eax, dword [0x48d8b4]
mov byte [eax], 0
mov eax, dword [ebp - 4]
call fcn.0041f780
call fcn.0040eb04
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret