Function at 0x408100
Capabilities:
Delete file
Move file
Read file on windows
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x43f541
mov eax, dword fs:[0]
push eax
sub esp, 0x9b4
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x9b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x9c8]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
push 0x448410
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], esi
call fcn.00409b60
xor ebx, ebx
push 0x448410
lea ecx, [esp + 0x24]
mov dword [esp + 0x9d4], ebx
call fcn.00409b60
push esi
lea eax, [esp + 0x24]
push str._sLdCab.ldx.tmp
push eax
mov byte [esp + 0x9dc], 1
call fcn.00409910
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push ecx
call fcn.0040a100
add esp, 4
test eax, eax
jne 0x408215
push esi
lea edx, [esp + 0x1c]
push str.UpdateStrategyToExeFile_File_Not_Exists_1__FilePath:__s_
push edx
call fcn.00409910
mov eax, dword [esp + 0x24]
add esp, 0xc
push ebx
push eax
push 0x453d11
call fcn.0040d890
mov byte [esp + 0x9d0], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4081e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x9d0], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40820d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x408a04
push 0x448410
lea ecx, [esp + 0x20]
call fcn.00409b60
push esi
lea ecx, [esp + 0x20]
push str._sLdCab.ldx
push ecx
mov byte [esp + 0x9dc], 2
call fcn.00409910
mov edx, dword [esp + 0x28]
add esp, 0xc
push edx
call fcn.0040a100
add esp, 4
test eax, eax
je 0x4083d4
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x1c]
push ecx
cmp eax, ebx
jne 0x408311
lea edx, [esp + 0x1c]
push str.UpdateStrategyToExeFile_DeleteFile_Fail_1__FilePath:__s_
push edx
call fcn.00409910
mov eax, dword [esp + 0x24]
add esp, 0xc
push ebx
push eax
push 0x453d11
call fcn.0040d890
mov byte [esp + 0x9d0], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4082b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x9d0], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4082dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x9d0], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408307
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffffe
jmp 0x408a04
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
cmp eax, ebx
jne 0x4083d4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x20]
push str.UpdateStrategyToExeFile_MoveFile_Fail_1__SrcPath:__s___DstPath:__s_
push edx
call fcn.00409910
mov eax, dword [esp + 0x28]
add esp, 0x10
push ebx
push eax
push 0x453d11
call fcn.0040d890
mov byte [esp + 0x9d0], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408378
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x9d0], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40839f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x9d0], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4083ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffffd
jmp 0x408a04
mov byte [esp + 0x9d0], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4083fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov byte [esp + 0x184], bl
lea ebx, [esp + 0x184]
mov dword [esp + 0x185], eax
mov dword [esp + 0x189], eax
mov dword [esp + 0x18d], eax
mov dword [esp + 0x191], eax
mov dword [esp + 0x195], eax
mov dword [esp + 0x199], eax
mov dword [esp + 0x19d], eax
mov word [esp + 0x1a1], ax
mov byte [esp + 0x1a3], al
call fcn.00408080
push 0x447a48
push edi
call fcn.0042292f
mov esi, eax
add esp, 8
test esi, esi
je 0x408988
push 0x7d000
call fcn.00413c36
add esp, 4
mov edi, eax
push esi
mov dword [esp + 0x20], edi
call fcn.0042309e
add esp, 4
test eax, eax
jne 0x408530
jmp 0x408494
mov edi, dword [esp + 0x1c]
push esi
mov dword [edi], 0
call fcn.00422e70
add esp, 4
push esi
push 0x7d000
push 1
push edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
call fcn.004233a6
mov ebx, eax
add esp, 0x10
xor edi, edi
test ebx, ebx
jle 0x40851f
mov ebp, dword [esp + 0x1c]
jmp 0x4084d0
lea ecx, [esp + 0x184]
push ecx
push ebp
call fcn.0042357d
add esp, 8
test eax, eax
je 0x4084f7
add edi, 0x200
add ebp, 0x200
cmp edi, ebx
jl 0x4084d0
jmp 0x40851f
mov ecx, dword [ebp + 0xf4]
mov eax, edi
cdq
xor ebp, ebp
add ecx, eax
adc ebp, edx
add ecx, dword [esp + 0x24]
push 0
adc ebp, dword [esp + 0x2c]
push ebp
push ecx
push esi
call fcn.00422ad5
add esp, 0x10
cmp edi, ebx
jl 0x408530
push esi
call fcn.0042309e
add esp, 4
test eax, eax
je 0x408490
mov edx, dword [esp + 0x1c]
push edx
call fcn.00413c2b
add esp, 4
push 0x3ff
lea eax, [esp + 0x5c9]
push 0
push eax
mov byte [esp + 0x5d0], 0
call fcn.00425400
add esp, 0xc
push esi
call fcn.0042309e
add esp, 4
test eax, eax
jne 0x4085f8
lea ecx, [ecx]
push esi
call fcn.00422e70
add esp, 4
push esi
push 0x400
lea ecx, [esp + 0x5cc]
push 1
push ecx
mov ebx, eax
mov dword [esp + 0x38], edx
call fcn.004233a6
add esp, 0x10
cmp eax, 0x400
jne 0x4085e5
lea edx, [esp + 0x5c4]
push str.LeaderCab
push edx
call fcn.0042357d
add esp, 8
test eax, eax
jne 0x4085e5
lea eax, [esp + 0x5e8]
push str.ldcab.ldx
push eax
call fcn.004237ba
add esp, 8
test eax, eax
je 0x4085fc
mov eax, dword [esp + 0x654]
cdq
push 1
push edx
push eax
push esi
call fcn.00422ad5
add esp, 0x10
push esi
call fcn.0042309e
add esp, 4
test eax, eax
je 0x408570
jmp 0x4085fc
mov ebx, dword [esp + 0x24]
push esi
call fcn.004229bd
add esp, 4
push 0x208
lea ecx, [esp + 0x3b9]
push 0
push ecx
mov dword [esp + 0x44], str.ldcab.ldx
mov dword [esp + 0x48], str.ldcab.ldind
mov dword [esp + 0x4c], str.ldcab.lddat
mov byte [esp + 0x3c0], 0
call fcn.00425400
add esp, 0xc
push 0x208
lea edx, [esp + 0x1a9]
push 0
push edx
mov byte [esp + 0x1b0], 0
call fcn.00425400
mov esi, dword [esp + 0x40]
add esp, 0xc
push esi
lea eax, [esp + 0x1a8]
push str._s.tmp
push eax
call fcn.00421fc5
lea ecx, [esp + 0x1b0]
add esp, 0xc
push ecx
mov eax, esi
call fcn.0040ab60
add esp, 4
lea edx, [esp + 0x1a4]
push 0x447978
push edx
call fcn.0042292f
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4086ed
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea ebx, [ebx]
lea eax, [esp + 0x1a4]
push 0x447978
push eax
call fcn.0042292f
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4086ed
push 0x64
inc esi
call edi
cmp esi, 0x64
jl 0x4086b0
lea ecx, [esp + 0x1a4]
push ecx
call fcn.0040ae10
add esp, 4
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [esp + 0x3b4]
sub eax, dword [esp + 0x30]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
lea esp, [esp]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x408710
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + edx*4 + 0x38]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408724
lea edi, [esp + 0x3b4]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408735
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x44]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0x3b8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4087fd
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x3b4]
push 0
push edx
mov ebx, ebp
lea ecx, [esp + 0x1ac]
call fcn.00403d10
mov esi, eax
add esp, 8
test esi, esi
jne 0x408843
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, 3
jb 0x408704
xor ebx, ebx
cmp ebp, ebx
je 0x4087b6
push ebp
call fcn.004229bd
add esp, 4
mov esi, dword [esp + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call edi
lea ecx, [esp + 0x1a4]
cmp eax, ebx
jne 0x4088ec
push ecx
call edi
push esi
lea edx, [esp + 0x1c]
push str.UpdateStrategyToLdmFile_DeleteFile_Fail_2__FilePath:__s_
push edx
call fcn.00409910
mov eax, dword [esp + 0x24]
add esp, 0xc
push ebx
push eax
push 0x453d11
call fcn.0040d890
jmp 0x4082b5
lea eax, [esp + 0x1a4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x3b4]
push ecx
lea edx, [esp + 0x1c]
push str.UpdateStrategyToExeFile_File_Not_Exists_2__FilePath:__s_
push edx
call fcn.00409910
mov eax, dword [esp + 0x24]
add esp, 0xc
push 0
push eax
push 0x453d11
call fcn.0040d890
mov byte [esp + 0x9d0], 0
jmp 0x4081c2
test ebp, ebp
je 0x408850
push ebp
call fcn.004229bd
add esp, 4
lea ecx, [esp + 0x1a4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x3b4]
push edx
lea eax, [esp + 0x1a8]
push eax
push esi
lea ecx, [esp + 0x24]
push str.UpdateStrategyToExeFile_JonFiles_Fail__Result:__d___SrcFilePath:__s___DstFilePath:__s_
push ecx
call fcn.00409910
mov edx, dword [esp + 0x2c]
add esp, 0x14
push 0
push edx
push 0x453d11
call fcn.0040d890
mov byte [esp + 0x9d0], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4088ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x9d0], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4088e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x408a04
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
cmp eax, ebx
jne 0x408932
lea edx, [esp + 0x1a4]
push edx
call edi
push esi
lea eax, [esp + 0x1a8]
push eax
lea ecx, [esp + 0x20]
push str.UpdateStrategyToLdmFile_MoveFile_Fail_2__SrcPath:__s___DstPath:__s_
push ecx
call fcn.00409910
mov edx, dword [esp + 0x28]
add esp, 0x10
push ebx
push edx
push 0x453d11
call fcn.0040d890
jmp 0x408378
mov byte [esp + 0x9d0], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408959
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x9d0], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408984
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x408a04
push edi
lea ecx, [esp + 0x1c]
push str.UpdateStrategyToExeFile_fopen_Fail__FilePath:__s_
push ecx
call fcn.00409910
mov edx, dword [esp + 0x24]
add esp, 0xc
push 0
push edx
push 0x453d11
call fcn.0040d890
mov byte [esp + 0x9d0], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4089d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x9d0], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4089ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffffc
mov ecx, dword [esp + 0x9c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x9b0]
xor ecx, esp
call fcn.00421f65
add esp, 0x9c0
ret