Function at 0x404000
Capabilities:
Delete file
Move file
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43aeeb
mov eax, dword fs:[0]
push eax
sub esp, 0x750
mov eax, dword [0x44bcd0]
xor eax, esp
mov dword [esp + 0x74c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44bcd0]
xor eax, esp
push eax
lea eax, [esp + 0x764]
mov dword fs:[0], eax
mov eax, dword [esp + 0x778]
mov ecx, dword [esp + 0x780]
mov esi, dword [esp + 0x774]
mov edi, dword [esp + 0x77c]
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], ecx
call fcn.00411c35
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404081
push 0x80004005
call fcn.004011d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
xor eax, eax
lea ecx, [esp + 0x34]
push 0x20
push ecx
mov dword [esp + 0x774], 0
mov byte [esp + 0x3c], 0
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov word [esp + 0x59], ax
mov byte [esp + 0x5b], al
call fcn.004013d0
add esp, 8
push 0
push esi
mov ecx, 0x44d3c9
call fcn.0040bc50
push 0x43d570
push edi
call fcn.0042065d
push 0x7d000
mov ebx, eax
call fcn.00410bca
add esp, 0xc
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebx, ebx
je 0x40452e
push ebx
call fcn.00420274
add esp, 4
test eax, eax
jne 0x4041d4
push ebx
mov dword [ebp], 0
call fcn.004209c0
push ebx
push 0x7d000
push 1
push ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
call fcn.0042057c
mov edi, eax
add esp, 0x14
xor esi, esi
test edi, edi
jle 0x4041bd
jmp 0x404150
lea ecx, [esp + 0x34]
mov eax, ebp
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404176
test dl, dl
je 0x404172
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404176
add eax, 2
add ecx, 2
test dl, dl
jne 0x404156
xor eax, eax
jmp 0x40417b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x404191
add esi, 0x200
add ebp, 0x200
cmp esi, edi
jl 0x404150
jmp 0x4041b9
mov ecx, dword [ebp + 0xf4]
mov eax, esi
cdq
xor ebp, ebp
add ecx, eax
adc ebp, edx
add ecx, dword [esp + 0x20]
push 0
adc ebp, dword [esp + 0x28]
push ebp
push ecx
push ebx
call fcn.00420b56
add esp, 0x10
cmp esi, edi
jl 0x4041d0
mov ebp, dword [esp + 0x18]
push ebx
call fcn.00420274
add esp, 4
test eax, eax
je 0x40411d
jmp 0x4041d4
mov ebp, dword [esp + 0x18]
push 0x400
xor edi, edi
lea edx, [esp + 0x364]
push edi
push edx
call fcn.00420a40
push ebx
call fcn.00420274
add esp, 0x10
test eax, eax
jne 0x4042a8
lea ebx, [ebx]
push ebx
call fcn.004209c0
push ebx
push 0x400
mov esi, eax
lea eax, [esp + 0x36c]
push 1
push eax
mov dword [esp + 0x38], edx
call fcn.0042057c
add esp, 0x14
cmp eax, 0x400
jne 0x40428e
mov ecx, str.LeaderCab
lea eax, [esp + 0x360]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404257
test dl, dl
je 0x404253
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404257
add eax, 2
add ecx, 2
test dl, dl
jne 0x404237
xor eax, eax
jmp 0x40425c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40428e
lea ecx, [esp + 0x384]
push str.ldcab.ldind
push ecx
call fcn.00420d6f
add esp, 8
test eax, eax
je 0x4042a1
mov eax, dword [esp + 0x3f0]
cdq
push 1
push edx
push eax
push ebx
call fcn.00420b56
add esp, 0x10
push ebx
call fcn.00420274
add esp, 4
test eax, eax
je 0x404200
jmp 0x4042ac
mov edi, 1
jmp 0x4042ac
mov esi, dword [esp + 0x20]
push ebx
call fcn.00420014
add esp, 4
test edi, edi
je 0x40452e
push 0x104
lea edx, [esp + 0x58]
push 0
push edx
call fcn.00420a40
mov ebx, dword [esp + 0x28]
lea edx, [esp + 0x60]
add esp, 0xc
mov eax, ebx
sub edx, ebx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4042e0
lea eax, [esp + 0x54]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4042f0
mov ecx, dword [str..tmp]
mov dl, byte [0x43d950]
mov dword [eax], ecx
mov byte [eax + 4], dl
push esi
lea eax, [esp + 0x58]
push eax
push ebx
call fcn.00408db0
push 0x104
lea ecx, [esp + 0x168]
push 0
push ecx
call fcn.00420a40
mov esi, dword [esp + 0x48]
lea edx, [esp + 0x170]
add esp, 0x18
mov eax, esi
sub edx, esi
jmp 0x404340
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404340
lea eax, [esp + 0x158]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404352
mov edx, dword [0x43d8c8]
mov ecx, dword [0x43d8cc]
mov dword [eax], edx
mov edx, dword [0x43d8d0]
mov dword [eax + 4], ecx
mov cl, byte [0x43d8d4]
mov dword [eax + 8], edx
lea edx, [esp + 0x25c]
mov byte [eax + 0xc], cl
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404388
lea eax, [esp + 0x25c]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4043a0
mov edx, dword [str.ldcab.lddat]
mov ecx, dword [0x43d8bc]
mov dword [eax], edx
mov edx, dword [0x43d8c0]
mov dword [eax + 4], ecx
mov cl, byte [0x43d8c4]
mov dword [eax + 8], edx
push 0
push 0
lea edx, [esp + 0x160]
mov byte [eax + 0xc], cl
push edx
lea eax, [esp + 0x60]
push eax
call fcn.00402e00
mov edi, eax
add esp, 0x10
test edi, edi
je 0x404407
push edi
lea ecx, [esp + 0x15c]
push ecx
lea edx, [esp + 0x1c]
push str.JoinFiles__s_in_UpdateLdxToExeFile__failed_with_return_value:__d
push edx
call fcn.00401f40
add esp, 0x10
jmp 0x40444d
lea eax, [esp + 0x54]
push 0x43d824
push eax
call fcn.0042065d
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
mov esi, eax
push edx
push esi
call fcn.00402860
push esi
mov bl, al
call fcn.00420014
add esp, 0x18
test bl, bl
jne 0x404449
lea eax, [esp + 0x14]
push str.EncryptFileToLdCab_failed
push eax
call fcn.00401f40
add esp, 8
mov ebx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test edi, edi
je 0x4044b1
lea ecx, [esp + 0x54]
push ecx
call esi
lea edx, [esp + 0x158]
push edx
call esi
lea eax, [esp + 0x25c]
push eax
call esi
mov esi, dword [esp + 0x14]
push 0
push esi
mov ecx, 0x44d3c9
call fcn.0040bc50
lea eax, [esi - 0x10]
mov dword [esp + 0x76c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x404564
push ebx
call esi
push ebx
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4044cd
lea edx, [esp + 0x54]
push edx
call esi
jmp 0x4044f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push str.MoveFile_Error:__d
push eax
call fcn.00401f40
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0
push ecx
mov ecx, 0x44d3c9
call fcn.0040bc50
lea edx, [esp + 0x25c]
push edx
call esi
lea eax, [esp + 0x158]
push eax
call esi
lea ecx, [esp + 0x14]
push str.Update_File_Success
push ecx
call fcn.00401f40
mov edx, dword [esp + 0x1c]
add esp, 8
push 0
push edx
mov ecx, 0x44d3c9
call fcn.0040bc50
push ebp
call fcn.00410bbf
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x76c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404562
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x764]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x74c]
xor ecx, esp
call fcn.0041eff4
add esp, 0x75c
ret