Function at 0x420091
Capabilities:
Copy file
Delete file
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff134
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jbe 0x4200f6
mov eax, dword [ebp - 8]
mov edx, dword [eax]
cmp edx, 0xffffffff
je 0x4200c8
push 1
push 0
push 0
mov ecx, dword [ebp - 8]
push dword [ecx]
call sub.KERNEL32.dll_SetFilePointer
jmp 0x4200ca
xor eax, eax
mov dword [ebp - 0xec4], eax
xor edx, edx
mov dword [ebp - 0xec0], edx
fild qword [ebp - 0xec4]
mov dword [ebp - 0xecc], ebx
xor ecx, ecx
mov dword [ebp - 0xec8], ecx
fild qword [ebp - 0xecc]
fdivp st(1)
jmp 0x4200fc
fld qword [0x4207b5]
fstp qword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00441453
mov byte [ebp - 0x15], 0
lea edx, [ebp - 0x1c]
push 0
push edx
lea ecx, [ebp - 0x15]
push 1
push ecx
mov eax, dword [ebp - 8]
push dword [eax]
call sub.KERNEL32.dll_ReadFile
xor eax, eax
lea edx, [ebp - 0x20]
mov al, byte [ebp - 0x15]
push 0
push edx
push eax
lea ecx, [ebp - 0x190]
push ecx
mov eax, dword [ebp - 8]
push dword [eax]
call sub.KERNEL32.dll_ReadFile
xor edx, edx
mov dl, byte [ebp - 0x15]
mov byte [ebp + edx - 0x190], 0
lea edx, [ebp - 0x190]
mov ecx, 1
mov eax, dword [ebp - 4]
call fcn.00441421
or esi, 0xffffffff
xor eax, eax
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x28]
push 0
push edx
lea ecx, [ebp - 0x24]
push 4
push ecx
mov eax, dword [ebp - 8]
push dword [eax]
call sub.KERNEL32.dll_ReadFile
test ebx, ebx
jbe 0x4201b5
mov edx, dword [ebp - 0x24]
xor ecx, ecx
mov dword [ebp - 0xec4], edx
mov dword [ebp - 0xec0], ecx
fild qword [ebp - 0xec4]
mov dword [ebp - 0xecc], ebx
xor eax, eax
mov dword [ebp - 0xec8], eax
fild qword [ebp - 0xecc]
fdivp st(1)
jmp 0x4201bb
fld qword [0x4207b5]
fstp qword [ebp - 0x30]
lea edx, [ebp - 0x398]
push edx
push 0x104
call sub.KERNEL32.dll_GetTempPathA
lea ecx, [ebp - 0x294]
push ecx
push 0
push 0x4543ec
lea eax, [ebp - 0x398]
push eax
call sub.KERNEL32.dll_GetTempFileNameA
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x294]
push edx
call sub.KERNEL32.dll_CreateFileA
mov ebx, eax
mov dword [ebp - 0x34], ebx
cmp ebx, 0xffffffff
sete al
and eax, 1
test al, al
je 0x42022f
xor eax, eax
cmp ebx, 0xffffffff
push eax
je 0x420229
push dword [ebp - 0x34]
call sub.KERNEL32.dll_CloseHandle
pop eax
jmp 0x4207ab
mov edx, dword [ebp - 0x24]
test edx, edx
jbe 0x4202f0
mov eax, dword [ebp - 4]
call fcn.004413b8
test al, al
je 0x420288
mov ebx, dword [ebp - 0x34]
cmp ebx, 0xffffffff
je 0x42025b
push ebx
call sub.KERNEL32.dll_CloseHandle
mov dword [ebp - 0x34], 0xffffffff
lea eax, [ebp - 0x294]
push eax
call sub.KERNEL32.dll_DeleteFileA
test eax, eax
setne dl
and edx, 1
xor eax, eax
push eax
mov edx, dword [ebp - 0x34]
cmp edx, 0xffffffff
je 0x420282
push dword [ebp - 0x34]
call sub.KERNEL32.dll_CloseHandle
pop eax
jmp 0x4207ab
mov ebx, dword [ebp - 0x24]
cmp ebx, 0x800
jbe 0x420298
mov ebx, 0x800
lea edx, [ebp - 0x38]
push 0
push edx
mov eax, ebx
push eax
lea ecx, [ebp - 0xb98]
push ecx
mov eax, dword [ebp - 8]
push dword [eax]
call sub.KERNEL32.dll_ReadFile
lea edx, [ebp - 0x3c]
push 0
push edx
mov eax, ebx
push eax
lea ecx, [ebp - 0xb98]
push ecx
push dword [ebp - 0x34]
call sub.KERNEL32.dll_WriteFile
xor edx, edx
lea eax, [ebp - 0xb98]
cmp ebx, edx
jbe 0x4202e2
xor ecx, ecx
mov cl, byte [eax]
add esi, ecx
inc edx
inc eax
cmp ebx, edx
ja 0x4202d6
sub dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x24]
test eax, eax
ja 0x42023a
mov ebx, dword [ebp - 0x34]
cmp ebx, 0xffffffff
je 0x420305
push ebx
call sub.KERNEL32.dll_CloseHandle
mov dword [ebp - 0x34], 0xffffffff
xor eax, eax
lea edx, [ebp - 0x44]
mov dword [ebp - 0x40], eax
push 0
push edx
lea ecx, [ebp - 0x40]
push 4
push ecx
mov eax, dword [ebp - 8]
push dword [eax]
call sub.KERNEL32.dll_ReadFile
mov edx, dword [ebp - 0x40]
cmp esi, edx
je 0x420368
mov cl, byte [ebp + 8]
test cl, cl
jne 0x42033b
mov edx, 0x454855
mov eax, dword [ebp - 4]
call fcn.00441410
lea ecx, [ebp - 0x294]
push ecx
call sub.KERNEL32.dll_DeleteFileA
test eax, eax
setne al
and eax, 1
xor eax, eax
push eax
mov edx, dword [ebp - 0x34]
cmp edx, 0xffffffff
je 0x420362
push dword [ebp - 0x34]
call sub.KERNEL32.dll_CloseHandle
pop eax
jmp 0x4207ab
lea edx, [ebp - 0xd98]
push edx
lea ecx, [ebp - 0xc98]
push ecx
push 0
push 0
lea eax, [ebp - 0x190]
push eax
call fcn.00448bb4
add esp, 0x14
push 0x4548a5
lea edx, [ebp - 0xd98]
push edx
call fcn.004462cc
add esp, 8
test eax, eax
sete bl
and ebx, 1
test bl, bl
je 0x4203c8
push 0x453b84
lea eax, [ebp - 0xc98]
push eax
push 0
push 0
lea edx, [ebp - 0x190]
push edx
call fcn.00448d48
add esp, 0x14
push dword [ebp - 0xc]
lea ecx, [ebp - 0xe9c]
push ecx
call fcn.00446208
add esp, 8
lea eax, [ebp - 0x190]
push eax
lea edx, [ebp - 0xe9c]
push edx
call fcn.00446178
add esp, 8
lea eax, [ebp - 0xe9c]
call fcn.00445496
test al, al
je 0x42047d
mov edx, 0x4548aa
mov ecx, 1
mov eax, dword [ebp - 4]
call fcn.00441421
mov esi, 0x258
dec esi
test esi, esi
je 0x42046a
mov eax, dword [ebp - 4]
call fcn.004413b8
test al, al
je 0x420454
lea edx, [ebp - 0x294]
push edx
call sub.KERNEL32.dll_DeleteFileA
test eax, eax
setne cl
and ecx, 1
xor eax, eax
push eax
mov edx, dword [ebp - 0x34]
cmp edx, 0xffffffff
je 0x42044e
push dword [ebp - 0x34]
call sub.KERNEL32.dll_CloseHandle
pop eax
jmp 0x4207ab
push 0x64
call sub.KERNEL32.dll_Sleep
lea eax, [ebp - 0xe9c]
call fcn.00445496
test al, al
jne 0x420416
lea edx, [ebp - 0x190]
mov ecx, 1
mov eax, dword [ebp - 4]
call fcn.00441421
test bl, bl
je 0x420756
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0xea4], edx
mov dword [ebp - 0xea0], ecx
mov dword [ebp - 0xea8], 0x4548bc
lea edx, [ebp - 0x294]
lea eax, [ebp - 0x48]
call fcn.0043ac2e
lea edx, [ebp - 0x48]
lea eax, [ebp - 0xea4]
call fcn.004249f0
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x4204e2
dec word [ebx + 0xe]
mov ax, word [ebx + 0xe]
test ax, ax
jne 0x4204e2
mov edx, dword [ebp - 0x48]
test edx, edx
je 0x4204e2
mov edx, 3
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [ebp - 0xea4]
test eax, eax
je 0x4204fa
test byte [eax + 0xd], 1
setne dl
and edx, 1
test dl, dl
je 0x4204fe
xor ecx, ecx
jmp 0x420503
mov ecx, 1
test cl, cl
je 0x4206e0
mov byte [ebp - 0x70], 6
mov dword [ebp - 0x78], 0x450384
mov dword [ebp - 0x78], 0x453040
lea ebx, [ebp - 0x78]
mov al, byte [ebp - 0x70]
mov byte [ebp - 0x74], al
lea eax, [ebp - 0x7c]
mov esi, dword [ebx]
mov edx, ebx
lea ecx, [ebp - 0xea4]
call dword [esi]
lea edx, [ebp - 0x7c]
lea eax, [ebp - 0xea4]
call fcn.004249f0
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
je 0x42056d
mov eax, dword [ebp - 0x7c]
dec word [eax + 0xe]
mov dx, word [eax + 0xe]
test dx, dx
jne 0x42056d
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
je 0x42056d
mov edx, 3
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
call dword [ecx]
push 1
push 0x10
push 0
lea edx, [ebp - 0xe9c]
lea eax, [ebp - 0x80]
mov ecx, 0x1f40
call fcn.00425f12
lea edx, [ebp - 0x80]
lea eax, [ebp - 0xea0]
call fcn.0043f27c
mov ecx, dword [ebp - 0x80]
test ecx, ecx
je 0x4205be
mov eax, dword [ebp - 0x80]
dec word [eax + 0x12]
mov dx, word [eax + 0x12]
test dx, dx
jne 0x4205be
mov ecx, dword [ebp - 0x80]
test ecx, ecx
je 0x4205be
mov edx, 3
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
call dword [ecx]
mov ebx, dword [ebp - 4]
fld qword [ebp - 0x30]
fmul dword [0x4207bd]
fadd qword [ebp - 0x14]
fstp qword [ebp - 0x88]
fld qword [ebp - 0x30]
fmul dword [0x4207c1]
fstp qword [ebp - 0x90]
mov dword [ebp - 0xebc], ebx
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xeb8], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xeb4], eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0xeb0], edx
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0xeac], edx
lea eax, [ebp - 0xebc]
lea edx, [ebp - 0xea8]
call fcn.0042110a
test eax, eax
je 0x4206f4
lea eax, [ebp - 0xea4]
call fcn.00424a2b
lea eax, [ebp - 0xea0]
call fcn.0043f2b7
lea edx, [ebp - 0x294]
push edx
call sub.KERNEL32.dll_DeleteFileA
test eax, eax
setne cl
and ecx, 1
xor eax, eax
push eax
mov edx, dword [ebp - 0xea0]
test edx, edx
je 0x420694
mov ecx, dword [ebp - 0xea0]
dec word [ecx + 0x12]
mov ax, word [ecx + 0x12]
test ax, ax
jne 0x420694
mov edx, dword [ebp - 0xea0]
test edx, edx
je 0x420694
mov edx, 3
mov eax, dword [ebp - 0xea0]
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [ebp - 0xea4]
test eax, eax
je 0x4206ca
mov edx, dword [ebp - 0xea4]
dec word [edx + 0xe]
mov cx, word [edx + 0xe]
test cx, cx
jne 0x4206ca
mov eax, dword [ebp - 0xea4]
test eax, eax
je 0x4206ca
mov edx, 3
mov eax, dword [ebp - 0xea4]
mov ecx, dword [eax]
call dword [ecx]
mov edx, dword [ebp - 0x34]
cmp edx, 0xffffffff
je 0x4206da
push dword [ebp - 0x34]
call sub.KERNEL32.dll_CloseHandle
pop eax
jmp 0x4207ab
mov dl, byte [ebp + 8]
test dl, dl
jne 0x4206f4
mov edx, 0x4548ca
mov eax, dword [ebp - 4]
call fcn.00441410
mov ebx, dword [ebp - 0xea0]
test ebx, ebx
je 0x420724
dec word [ebx + 0x12]
mov ax, word [ebx + 0x12]
test ax, ax
jne 0x420724
mov edx, dword [ebp - 0xea0]
test edx, edx
je 0x420724
mov edx, 3
mov eax, dword [ebp - 0xea0]
mov ecx, dword [eax]
call dword [ecx]
mov ebx, dword [ebp - 0xea4]
test ebx, ebx
je 0x420783
dec word [ebx + 0xe]
mov ax, word [ebx + 0xe]
test ax, ax
jne 0x420783
mov edx, dword [ebp - 0xea4]
test edx, edx
je 0x420783
mov edx, 3
mov eax, dword [ebp - 0xea4]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x420783
push 0
lea eax, [ebp - 0xe9c]
push eax
lea edx, [ebp - 0x294]
push edx
call sub.KERNEL32.dll_CopyFileA
test eax, eax
jne 0x420783
mov cl, byte [ebp + 8]
test cl, cl
jne 0x420783
mov edx, 0x454941
mov eax, dword [ebp - 4]
call fcn.00441410
lea ecx, [ebp - 0x294]
push ecx
call sub.KERNEL32.dll_DeleteFileA
test eax, eax
setne al
and eax, 1
mov al, 1
push eax
mov edx, dword [ebp - 0x34]
cmp edx, 0xffffffff
je 0x4207aa
push dword [ebp - 0x34]
call sub.KERNEL32.dll_CloseHandle
pop eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8