Function at 0x40293a
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0x5c
mov eax, 0x62b147
call fcn.004e5a7f
mov edi, ecx
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
mov ecx, dword [0x6e518c]
cmovne ecx, dword [ebp + 0x10]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
mov word [edi + 0x88], bx
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x48], ecx
mov ecx, eax
mov dword [ebp - 0x54], eax
jb 0x402975
mov ecx, dword [eax]
push ecx
lea ecx, [edi + 0x40]
call fcn.004060b1
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x14], 0x10
jb 0x402989
mov eax, dword [eax]
push eax
lea ecx, [edi + 0xa0]
call fcn.004060b1
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40299f
mov eax, dword [esi]
push eax
lea ecx, [edi + 0x58]
call fcn.004060b1
mov ecx, edi
mov dword [edi + 0x8c], ebx
mov dword [edi + 0x90], ebx
mov byte [edi + 0x8a], bl
mov byte [edi + 0x9c], bl
mov dword [edi + 0x98], ebx
mov dword [edi + 0x94], 0xc8
call fcn.004028f8
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4029e1
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esi + 0x14], 0x10
jb 0x4029f0
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], bl
call fcn.004060b1
push str..dltmp
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
call fcn.00405c38
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push ebx
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.005008ac
pop ecx
pop ecx
mov ecx, edi
cmp eax, 0xffffffff
jne 0x402e9a
call fcn.0040399f
test al, al
jne 0x402a94
mov eax, dword [0x6e51fc]
test eax, eax
je 0x402e96
mov eax, dword [eax]
push ecx
push str.root_error_c1
mov esi, dword [eax + 8]
lea eax, [ebp - 0x50]
push eax
call fcn.0040fafc
cmp dword [eax + 4], ebx
je 0x402a68
mov eax, ebx
jmp 0x402a6a
mov eax, dword [eax]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], eax
call fcn.0040b066
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.004060b1
mov byte [ebp - 4], 1
jmp 0x402e7b
mov esi, dword [edi + 0x8c]
mov eax, esi
movd xmm0, dword [0x6e5198]
shr eax, 0x1f
cvtdq2pd xmm0, xmm0
push ecx
push ecx
movd xmm1, esi
cvtdq2pd xmm1, xmm1
addsd xmm1, qword [eax*8 + 0x6c3590]
divsd xmm1, xmm0
movsd qword [ebp - 0x50], xmm1
fld qword [ebp - 0x50]
fstp qword [esp]
call fcn.00526db0
pop ecx
fstp qword [ebp - 0x50]
cvttsd2si eax, qword [ebp - 0x50]
pop ecx
mov ecx, dword [ebp - 0x48]
push ebx
push 0x80
push 2
push ebx
mov dword [ebp - 0x60], esi
push ebx
cmp eax, ecx
mov dword [edi + 0x90], ebx
push 0xc0000000
cmovl ecx, eax
mov byte [ebp - 0x41], bl
xor eax, eax
inc eax
cmp byte [edi + 0x8a], 0
cmovne eax, ecx
mov dword [ebp - 0x5c], eax
imul eax, eax, 0xc
add eax, 4
add esi, eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x54], eax
cmp eax, 0xffffffff
je 0x402e2e
push ebx
push esi
push ebx
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x402b57
push eax
call esi
mov byte [ebp - 0x41], 1
push dword [ebp - 0x54]
call esi
cmp byte [ebp - 0x41], 0
je 0x402e2e
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0x6c17d8
cmovae eax, dword [ebp - 0x40]
push eax
push edi
call fcn.00500adc
add esp, 0xc
test eax, eax
jne 0x402ddb
cmp dword [edi], eax
je 0x402ddb
push 2
push 0xffffffffffffffff
push 0xfffffffffffffffc
push dword [edi]
call fcn.00500ddf
add esp, 0x10
test eax, eax
jne 0x402d5d
push dword [edi]
lea eax, [ebp - 0x60]
push 1
push 4
push eax
call fcn.00501034
add esp, 0x10
test eax, eax
je 0x402d5d
mov eax, dword [ebp - 0x60]
xor edx, edx
mov esi, dword [ebp - 0x5c]
div esi
push 2
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x48]
neg eax
cdq
push edx
push eax
push dword [edi]
call fcn.00500ddf
add esp, 0x10
mov dword [ebp - 0x64], ebx
test esi, esi
jle 0x402c93
lea eax, [esi - 1]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x4c], eax
push 0x1c
call fcn.004e4913
mov esi, eax
mov dword [ebp - 0x48], esi
pop ecx
mov ecx, dword [ebp - 0x68]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov eax, dword [ebp - 0x4c]
mov dword [esi], ecx
cmp dword [ebp - 0x64], eax
jne 0x402c2a
mov eax, dword [ebp - 0x60]
sub eax, ecx
jmp 0x402c2d
mov eax, dword [ebp - 0x54]
mov dword [esi + 4], eax
mov eax, dword [edi + 0x38]
cmp eax, dword [edi + 0x3c]
je 0x402c40
mov dword [eax], esi
add dword [edi + 0x38], 4
jmp 0x402c50
lea ecx, [ebp - 0x48]
push ecx
push eax
lea ecx, [edi + 0x34]
call fcn.004055ff
mov esi, dword [ebp - 0x48]
push dword [edi]
push 1
push 4
push esi
call fcn.00501034
push dword [edi]
lea eax, [esi + 4]
push 1
push 4
push eax
call fcn.00501034
push dword [edi]
lea eax, [esi + 8]
push 1
push 4
push eax
call fcn.00501034
mov eax, dword [ebp - 0x64]
add esp, 0x30
mov ecx, dword [ebp - 0x54]
inc eax
add dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], eax
cmp eax, dword [ebp - 0x5c]
jl 0x402bf7
mov ecx, dword [edi]
call fcn.00402723
push 1
mov ecx, edi
call fcn.00403fc0
mov esi, ebx
cmp dword [ebp - 0x5c], esi
jle 0x402d02
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x34]
push 0x10
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x54], eax
call fcn.004e4913
pop ecx
mov dword [ebp - 0x4c], eax
mov ecx, edi
push eax
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 4], esi
mov dword [eax], edi
call fcn.00402f89
test al, al
je 0x402d0a
mov eax, dword [ebp - 0x54]
add eax, 0x14
push eax
push ebx
push dword [ebp - 0x4c]
push 0x403136
push ebx
push ebx
call dword [ebp - 0x48]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x10], eax
test eax, eax
je 0x402d0a
inc esi
cmp esi, dword [ebp - 0x5c]
jl 0x402cb2
xor eax, eax
inc eax
jmp 0x402e9f
mov eax, dword [0x6e51fc]
test eax, eax
je 0x402dc8
mov eax, dword [eax]
push ecx
push str.root_error_c5
mov esi, dword [eax + 8]
lea eax, [ebp - 0x58]
push eax
call fcn.0040fafc
cmp dword [eax + 4], ebx
je 0x402d34
mov eax, ebx
jmp 0x402d36
mov eax, dword [eax]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], eax
call fcn.0040b066
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.004060b1
mov byte [ebp - 4], 5
jmp 0x402daa
mov eax, dword [0x6e51fc]
test eax, eax
je 0x402dc8
mov eax, dword [eax]
push ecx
push str.root_error_c4
mov esi, dword [eax + 8]
lea eax, [ebp - 0x58]
push eax
call fcn.0040fafc
cmp dword [eax + 4], ebx
je 0x402d83
mov eax, ebx
jmp 0x402d85
mov eax, dword [eax]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], eax
call fcn.0040b066
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.004060b1
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [0x6e51fc]
push eax
call esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.004060fd
mov ecx, edi
call fcn.00402eb3
mov ecx, edi
call fcn.00403d35
jmp 0x402ea1
mov eax, dword [0x6e51fc]
test eax, eax
je 0x402e96
mov eax, dword [eax]
push ecx
push str.root_error_c3
mov esi, dword [eax + 8]
lea eax, [ebp - 0x58]
push eax
call fcn.0040fafc
cmp dword [eax + 4], ebx
je 0x402e05
mov eax, ebx
jmp 0x402e07
mov eax, dword [eax]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], eax
call fcn.0040b066
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.004060b1
mov byte [ebp - 4], 3
jmp 0x402e7b
mov eax, dword [0x6e51fc]
test eax, eax
je 0x402e96
mov eax, dword [eax]
push ecx
push str.root_error_c2
mov esi, dword [eax + 8]
lea eax, [ebp - 0x58]
push eax
call fcn.0040fafc
cmp dword [eax + 4], ebx
je 0x402e54
mov eax, ebx
jmp 0x402e56
mov eax, dword [eax]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], eax
call fcn.0040b066
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.004060b1
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [0x6e51fc]
push eax
call esi
lea ecx, [ebp - 0x28]
call fcn.004060fd
mov al, bl
jmp 0x402e9f
call fcn.00403459
mov bl, al
lea ecx, [ebp - 0x40]
call fcn.004060fd
mov al, bl
call fcn.004e5a3a
ret 0xc