Function at 0x401c55
Capabilities:
Delete file
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x402196
call fcn.00402960
mov eax, 0x146c
call fcn.00402930
push ebx
lea eax, [ebp - 0xc78]
push esi
push edi
mov edi, 0x400
push edi
push eax
push 6
xor esi, esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x104
lea ecx, [ebp - 0x878]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea ecx, [ebp - 0x878]
push pe_nt_image_headers32
push 3
push esi
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x401d2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x401cf8
push edi
lea eax, [ebp - 0x770]
push eax
push 2
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x30
lea ecx, [ebp - 0xc78]
push ecx
lea edx, [ebp - 0x770]
push edx
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x402388
push 0x400
lea eax, [ebp - 0x770]
push eax
push 5
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x30
lea ecx, [ebp - 0xc78]
push ecx
lea edx, [ebp - 0x770]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x402388
xor eax, eax
push eax
mov dword [ebp - 0x18], eax
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x30
mov esi, eax
jb 0x401da5
push 2
xor edi, edi
push edi
push 0xffffffffffffffd0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x58]
push 0x30
push ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [ebp - 0x58], 0x44
jne 0x401da5
cmp byte [ebp - 0x57], 0x57
jne 0x401da5
cmp byte [ebp - 0x56], 0x33
jne 0x401da5
cmp byte [ebp - 0x55], 0x30
jne 0x401da5
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0x4c], edi
je 0x401d98
add eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x48]
add eax, 0x30
cmp eax, esi
jbe 0x401dac
jmp 0x401da5
add eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x48]
add eax, 0x30
cmp eax, esi
jbe 0x401dac
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], 0
jne 0x401dc2
cmp dword [ebp - 0x2c], 0x300
je 0x401dc2
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], 1
jne 0x401e05
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x400
lea eax, [ebp - 0x770]
push eax
push 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x30
lea ecx, [ebp - 0xc78]
push ecx
lea edx, [ebp - 0x770]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x402388
mov esi, 0xffffffff
mov ebx, 0x105
push ebx
xor edi, edi
push edi
lea eax, [ebp - 0x370]
push eax
mov dword [ebp - 0x14], esi
call fcn.004023c0
add esp, 0xc
lea eax, [ebp - 0x160]
push ebx
push edi
push eax
call fcn.004023c0
add esp, 0xc
lea eax, [ebp - 0x268]
push ebx
push edi
push eax
call fcn.004023c0
add esp, 0xc
lea eax, [ebp - 0x370]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x370]
lea ecx, [ebp - 0x160]
push eax
mov ebx, 0x407054
push ecx
call fcn.00402510
add esp, 8
lea ecx, [ebp - 0x160]
push ebx
push ecx
call fcn.00402520
add esp, 8
lea eax, [ebp - 0x160]
push str.mpcqv30.exe
push eax
call fcn.00402520
add esp, 8
lea eax, [ebp - 0x370]
lea ecx, [ebp - 0x268]
push eax
push ecx
call fcn.00402510
add esp, 8
lea ecx, [ebp - 0x268]
push ebx
push ecx
call fcn.00402520
add esp, 8
lea ecx, [ebp - 0x268]
push str.mpcqv30.tmp
push ecx
call fcn.00402520
add esp, 8
push edi
push 0x4000080
push 2
mov ebx, 0xc0000000
push edi
lea ecx, [ebp - 0x268]
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x401f28
push edi
lea eax, [ebp - 0x160]
push pe_nt_image_headers32
push 2
push edi
push 1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp eax, esi
jne 0x401fe3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x401fe3
lea eax, [ebp - 0x268]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x370]
push ebx
push 0x407050
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push ebx
mov esi, 0xc0000000
push 0x4000080
lea eax, [ebp - 0x268]
push 2
push ebx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
je 0x401fc7
lea eax, [ebp - 0x268]
lea ecx, [ebp - 0x160]
push eax
push ecx
call fcn.00402510
add esp, 8
lea ecx, [ebp - 0x160]
push 0x2e
push ecx
call fcn.00402900
add esp, 8
lea ecx, [ebp - 0x160]
mov byte [eax], bl
push str..exe
push ecx
call fcn.00402520
add esp, 8
lea ecx, [ebp - 0x160]
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 1
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x401fd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x402051
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x14], 0xffffffff
jne 0x402051
cmp dword [ebp - 0x20], 0xffffffff
je 0x401ff8
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0x27
je 0x40201d
cmp dword [ebp - 0x1c], 0x70
je 0x40201d
push 0x400
lea eax, [ebp - 0x770]
push eax
push 5
jmp 0x40202b
push 0x400
lea eax, [ebp - 0x770]
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x30
lea ecx, [ebp - 0xc78]
push ecx
lea edx, [ebp - 0x770]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x402388
cmp dword [ebp - 0x4c], 0
je 0x40205c
mov edi, dword [ebp - 0x4c]
jmp 0x40205f
mov edi, dword [ebp - 0x50]
push edi
xor ebx, ebx
call fcn.004023b0
add esp, 4
mov esi, eax
push ebx
push ebx
push dword [ebp - 0x54]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea ecx, [ebp - 0x24]
push ecx
push edi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x4c], ebx
je 0x402108
push 4
call fcn.004023b0
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
mov ebx, 0
je 0x4020b1
mov ecx, eax
call fcn.00401b82
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, ebx
call fcn.00401b9b
push dword [ebp - 0x50]
call fcn.004023b0
add esp, 4
mov ecx, ebx
mov dword [ebp - 0x28], eax
push eax
push dword [ebp - 0x50]
push esi
push edi
call fcn.00401b48
mov dword [ebp - 0x24], eax
test ebx, ebx
je 0x4020f1
mov ecx, ebx
call fcn.00401b8b
push ebx
call fcn.004023a0
add esp, 4
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x50], eax
jne 0x402126
push esi
call fcn.004023a0
add esp, 4
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
push 0
lea eax, [ebp - 0x24]
push eax
push edi
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4021ac
jmp 0x4021b1
push dword [ebp - 0x28]
call fcn.004023a0
add esp, 4
push esi
call fcn.004023a0
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x400
lea eax, [ebp - 0x770]
push eax
push 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x30
lea ecx, [ebp - 0xc78]
push ecx
lea edx, [ebp - 0x770]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x402388
cmp dword [ebp - 0x24], edi
je 0x4021b8
mov dword [ebp - 0x18], 1
push esi
call fcn.004023a0
add esp, 4
cmp dword [ebp - 0x18], 1
jne 0x402245
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, 0x27
je 0x402211
cmp esi, 0x70
je 0x402211
push 0x400
lea eax, [ebp - 0x770]
push eax
push 5
jmp 0x40221f
push 0x400
lea eax, [ebp - 0x770]
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x30
lea ecx, [ebp - 0xc78]
push ecx
lea edx, [ebp - 0x770]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x402388
push 0x400
lea eax, [ebp - 0x1078]
push 0
push eax
call fcn.004023c0
add esp, 0xc
lea eax, [ebp - 0x1078]
push str.__S
push eax
call fcn.00402510
add esp, 8
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0x4c], 0
jne 0x40227d
add eax, dword [ebp - 0x50]
jmp 0x402280
add eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x1478]
push str._ld
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x1478]
lea ecx, [ebp - 0x1078]
push eax
push ecx
call fcn.00402520
add esp, 8
lea edx, [ebp - 0x1478]
push dword [ebp - 0x48]
push 0x407034
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x1478]
lea edx, [ebp - 0x1078]
mov esi, 0x407030
push ecx
push edx
call fcn.00402520
add esp, 8
lea ecx, [ebp - 0x1078]
push esi
push ecx
call fcn.00402520
add esp, 8
lea eax, [ebp - 0x878]
lea ecx, [ebp - 0x1078]
push eax
push ecx
call fcn.00402520
add esp, 8
lea ecx, [ebp - 0x1078]
push esi
push ecx
call fcn.00402520
add esp, 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea ecx, [ebp - 0x1078]
push ecx
lea edx, [ebp - 0x160]
push edx
call fcn.00401bbf
add esp, 0xc
test eax, eax
jne 0x402369
push 0x400
lea eax, [ebp - 0x770]
push eax
push 5
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x30
lea ecx, [ebp - 0xc78]
push ecx
lea edx, [ebp - 0x770]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10