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

Disassembly:
push 0xffffffffffffffff
push 0x43b80b
mov eax, dword fs:[0]
push eax
sub esp, 0xa5c
mov eax, dword [0x44ccd0]
xor eax, esp
mov dword [esp + 0xa58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44ccd0]
xor eax, esp
push eax
lea eax, [esp + 0xa70]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa84]
mov ecx, dword [esp + 0xa8c]
mov esi, dword [esp + 0xa80]
mov edi, dword [esp + 0xa88]
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], ecx
call fcn.004125a5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404111
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 + 0xa80], 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, 0x44e3c9
call fcn.0040be50
push 0x43e570
push edi
call fcn.00420f7d
push 0x7d000
mov ebx, eax
call fcn.0041152f
add esp, 0xc
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebx, ebx
je 0x4045be
push ebx
call fcn.00420b94
add esp, 4
test eax, eax
jne 0x404264
push ebx
mov dword [ebp], 0
call fcn.004212e0
push ebx
push 0x7d000
push 1
push ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
call fcn.00420e9c
mov edi, eax
add esp, 0x14
xor esi, esi
test edi, edi
jle 0x40424d
jmp 0x4041e0
lea ecx, [esp + 0x34]
mov eax, ebp
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404206
test dl, dl
je 0x404202
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404206
add eax, 2
add ecx, 2
test dl, dl
jne 0x4041e6
xor eax, eax
jmp 0x40420b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x404221
add esi, 0x200
add ebp, 0x200
cmp esi, edi
jl 0x4041e0
jmp 0x404249
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.00421476
add esp, 0x10
cmp esi, edi
jl 0x404260
mov ebp, dword [esp + 0x18]
push ebx
call fcn.00420b94
add esp, 4
test eax, eax
je 0x4041ad
jmp 0x404264
mov ebp, dword [esp + 0x18]
push 0x400
xor edi, edi
lea edx, [esp + 0x670]
push edi
push edx
call fcn.00421360
push ebx
call fcn.00420b94
add esp, 0x10
test eax, eax
jne 0x404338
lea ebx, [ebx]
push ebx
call fcn.004212e0
push ebx
push 0x400
mov esi, eax
lea eax, [esp + 0x678]
push 1
push eax
mov dword [esp + 0x38], edx
call fcn.00420e9c
add esp, 0x14
cmp eax, 0x400
jne 0x40431e
mov ecx, str.LeaderCab
lea eax, [esp + 0x66c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4042e7
test dl, dl
je 0x4042e3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4042e7
add eax, 2
add ecx, 2
test dl, dl
jne 0x4042c7
xor eax, eax
jmp 0x4042ec
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40431e
lea ecx, [esp + 0x690]
push str.ldcab.ldind
push ecx
call fcn.0042168f
add esp, 8
test eax, eax
je 0x404331
mov eax, dword [esp + 0x6fc]
cdq
push 1
push edx
push eax
push ebx
call fcn.00421476
add esp, 0x10
push ebx
call fcn.00420b94
add esp, 4
test eax, eax
je 0x404290
jmp 0x40433c
mov edi, 1
jmp 0x40433c
mov esi, dword [esp + 0x20]
push ebx
call fcn.00420934
add esp, 4
test edi, edi
je 0x4045be
push 0x208
lea edx, [esp + 0x58]
push 0
push edx
call fcn.00421360
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 0x404370
lea eax, [esp + 0x54]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404380
mov ecx, dword [str..tmp]
mov dl, byte [0x43e95c]
mov dword [eax], ecx
mov byte [eax + 4], dl
push esi
lea eax, [esp + 0x58]
push eax
push ebx
call fcn.00408aa0
push 0x208
lea ecx, [esp + 0x26c]
push 0
push ecx
call fcn.00421360
mov esi, dword [esp + 0x48]
lea edx, [esp + 0x274]
add esp, 0x18
mov eax, esi
sub edx, esi
jmp 0x4043d0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4043d0
lea eax, [esp + 0x25c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4043e2
mov edx, dword [0x43e8d4]
mov ecx, dword [0x43e8d8]
mov dword [eax], edx
mov edx, dword [0x43e8dc]
mov dword [eax + 4], ecx
mov cl, byte [0x43e8e0]
mov dword [eax + 8], edx
lea edx, [esp + 0x464]
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 0x404418
lea eax, [esp + 0x464]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404430
mov edx, dword [str.ldcab.lddat]
mov ecx, dword [0x43e8c8]
mov dword [eax], edx
mov edx, dword [0x43e8cc]
mov dword [eax + 4], ecx
mov cl, byte [0x43e8d0]
mov dword [eax + 8], edx
push 0
push 0
lea edx, [esp + 0x264]
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 0x404497
push edi
lea ecx, [esp + 0x260]
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 0x4044dd
lea eax, [esp + 0x54]
push 0x43e830
push eax
call fcn.00420f7d
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.00420934
add esp, 0x18
test bl, bl
jne 0x4044d9
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 0x404541
lea ecx, [esp + 0x54]
push ecx
call esi
lea edx, [esp + 0x25c]
push edx
call esi
lea eax, [esp + 0x464]
push eax
call esi
mov esi, dword [esp + 0x14]
push 0
push esi
mov ecx, 0x44e3c9
call fcn.0040be50
lea eax, [esi - 0x10]
mov dword [esp + 0xa78], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40453a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x4045f4
push ebx
call esi
push ebx
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x40455d
lea edx, [esp + 0x54]
push edx
call esi
jmp 0x404587
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, 0x44e3c9
call fcn.0040be50
lea edx, [esp + 0x464]
push edx
call esi
lea eax, [esp + 0x25c]
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, 0x44e3c9
call fcn.0040be50
push ebp
call fcn.0041153a
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0xa78], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4045f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xa70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa58]
xor ecx, esp
call fcn.0041f914
add esp, 0xa68
ret