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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, 0x540cc0
call fcn.00524684
mov dword [ebp - 0x10], 2
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.0052f058
inc dword [ebp - 0x10]
lea edx, [ebp - 8]
mov word [ebp - 0x1c], 8
lea eax, [ebp - 8]
call fcn.0052f058
inc dword [ebp - 0x10]
xor edx, edx
mov dword [ebp - 0x38], edx
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 1
mov edx, dword [ebp + 8]
mov dword [0x540c20], edx
mov edx, dword [ebp + 0xc]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
cmp dword [ebp - 8], 0
mov dword [0x540c24], edx
je 0x43e8da
mov ecx, dword [ebp - 8]
jmp 0x43e8df
mov ecx, 0x540c3e
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x43ea72
push 0
push esi
call sub.KERNEL32.DLL_GetFileSize
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x43ea6c
push 0x540c3f
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.DLL_CreateFileMappingA
mov edi, eax
test edi, edi
je 0x43ea6c
push 0
push 0
push 0
push 4
push edi
call sub.KERNEL32.DLL_MapViewOfFile
mov ebx, eax
test ebx, ebx
je 0x43ea66
add ebx, dword [ebp - 0x30]
lea eax, [ebp - 0x48]
push eax
mov edx, dword [ebp - 0x4c]
push edx
push ebx
call fcn.004405cc
add esp, 0xc
test eax, eax
jne 0x43ea60
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x4c], 0
je 0x43ea60
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x40], edx
cmp word [ebp + 0xa], 0
je 0x43e98a
push 0
push 0
mov eax, dword [ebp - 0x3c]
xor edx, edx
push edx
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call dword [ebp + 8]
add esp, 0x18
mov dword [ebp - 0x34], 0x43e468
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
cmp dword [ebp - 4], 0
je 0x43e9ab
mov eax, dword [ebp - 4]
jmp 0x43e9b0
mov eax, 0x540c46
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0xffffffff
je 0x43ea60
push 0
mov edx, dword [ebp - 0x3c]
push edx
push 0
push 4
push 0
mov ecx, dword [ebp - 0x54]
push ecx
call sub.KERNEL32.DLL_CreateFileMappingA
mov dword [ebp - 0x58], eax
test edi, edi
je 0x43ea57
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x58]
push eax
call sub.KERNEL32.DLL_MapViewOfFile
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x43ea4e
cmp word [ebp + 0xa], 0
je 0x43ea09
lea edx, [ebp - 0x34]
mov dword [ebp - 0x38], edx
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x40]
push ecx
push eax
push ebx
lea edx, [ebp - 0x3c]
push edx
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.0044061c
add esp, 0x14
mov dword [ebp - 0x50], eax
cmp word [ebp + 0xa], 0
je 0x43ea45
push 0
push 0
mov eax, dword [ebp - 0x3c]
xor edx, edx
push edx
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call dword [ebp + 8]
add esp, 0x18
mov edx, dword [ebp - 0x5c]
push edx
call sub.KERNEL32.DLL_UnmapViewOfFile
mov ecx, dword [ebp - 0x58]
push ecx
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x54]
push eax
call sub.KERNEL32.DLL_CloseHandle
push ebx
call sub.KERNEL32.DLL_UnmapViewOfFile
push edi
call sub.KERNEL32.DLL_CloseHandle
push esi
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 0x50], 0
jne 0x43eaa9
mov eax, dword [ebp - 0x3c]
mov edx, 2
push eax
lea eax, [ebp - 8]
dec dword [ebp - 0x10]
call fcn.0052f334
dec dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0052f334
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x43eaed
cmp dword [ebp - 4], 0
je 0x43eab4
mov ecx, dword [ebp - 4]
jmp 0x43eab9
mov ecx, 0x540c47
push ecx
call sub.KERNEL32.DLL_DeleteFileA
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 8]
dec dword [ebp - 0x10]
call fcn.0052f334
dec dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0052f334
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8