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

Disassembly:
push 0xffffffffffffffff
push 0x43ec51
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 0x448368
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], esi
call fcn.004098c0
xor ebx, ebx
push 0x448368
lea ecx, [esp + 0x24]
mov dword [esp + 0x9d4], ebx
call fcn.004098c0
push esi
lea eax, [esp + 0x24]
push str._sLdCab.ldx.tmp
push eax
mov byte [esp + 0x9dc], 1
call fcn.00409670
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push ecx
call fcn.00409e30
add esp, 4
test eax, eax
jne 0x407f45
push esi
lea edx, [esp + 0x1c]
push str.UpdateStrategyToExeFile_File_Not_Exists_1__FilePath:__s_
push edx
call fcn.00409670
mov eax, dword [esp + 0x24]
add esp, 0xc
push ebx
push eax
push 0x453d09
call fcn.0040d390
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 0x407f12
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 0x407f3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x408734
push 0x448368
lea ecx, [esp + 0x20]
call fcn.004098c0
push esi
lea ecx, [esp + 0x20]
push str._sLdCab.ldx
push ecx
mov byte [esp + 0x9dc], 2
call fcn.00409670
mov edx, dword [esp + 0x28]
add esp, 0xc
push edx
call fcn.00409e30
add esp, 4
test eax, eax
je 0x408104
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 0x408041
lea edx, [esp + 0x1c]
push str.UpdateStrategyToExeFile_DeleteFile_Fail_1__FilePath:__s_
push edx
call fcn.00409670
mov eax, dword [esp + 0x24]
add esp, 0xc
push ebx
push eax
push 0x453d09
call fcn.0040d390
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 0x407fe5
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 0x40800c
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 0x408037
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffffe
jmp 0x408734
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
cmp eax, ebx
jne 0x408104
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.00409670
mov eax, dword [esp + 0x28]
add esp, 0x10
push ebx
push eax
push 0x453d09
call fcn.0040d390
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 0x4080a8
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 0x4080cf
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 0x4080fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffffd
jmp 0x408734
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 0x40812c
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.00407db0
push 0x447a7c
push edi
call fcn.00422167
mov esi, eax
add esp, 8
test esi, esi
je 0x4086b8
push 0x7d000
call fcn.004133db
add esp, 4
mov edi, eax
push esi
mov dword [esp + 0x20], edi
call fcn.004227eb
add esp, 4
test eax, eax
jne 0x408260
jmp 0x4081c4
mov edi, dword [esp + 0x1c]
push esi
mov dword [edi], 0
call fcn.004227a1
add esp, 4
push esi
push 0x7d000
push 1
push edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
call fcn.00422af3
mov ebx, eax
add esp, 0x10
xor edi, edi
test ebx, ebx
jle 0x40824f
mov ebp, dword [esp + 0x1c]
jmp 0x408200
lea ecx, [esp + 0x184]
push ecx
push ebp
call fcn.00422dad
add esp, 8
test eax, eax
je 0x408227
add edi, 0x200
add ebp, 0x200
cmp edi, ebx
jl 0x408200
jmp 0x40824f
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.00422bac
add esp, 0x10
cmp edi, ebx
jl 0x408260
push esi
call fcn.004227eb
add esp, 4
test eax, eax
je 0x4081c0
mov edx, dword [esp + 0x1c]
push edx
call fcn.004133e6
add esp, 4
push 0x3ff
lea eax, [esp + 0x5c9]
push 0
push eax
mov byte [esp + 0x5d0], 0
call fcn.00424c40
add esp, 0xc
push esi
call fcn.004227eb
add esp, 4
test eax, eax
jne 0x408328
lea ecx, [ecx]
push esi
call fcn.004227a1
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.00422af3
add esp, 0x10
cmp eax, 0x400
jne 0x408315
lea edx, [esp + 0x5c4]
push str.LeaderCab
push edx
call fcn.00422dad
add esp, 8
test eax, eax
jne 0x408315
lea eax, [esp + 0x5e8]
push str.ldcab.ldx
push eax
call fcn.00422fea
add esp, 8
test eax, eax
je 0x40832c
mov eax, dword [esp + 0x654]
cdq
push 1
push edx
push eax
push esi
call fcn.00422bac
add esp, 0x10
push esi
call fcn.004227eb
add esp, 4
test eax, eax
je 0x4082a0
jmp 0x40832c
mov ebx, dword [esp + 0x24]
push esi
call fcn.004221f5
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.00424c40
add esp, 0xc
push 0x208
lea edx, [esp + 0x1a9]
push 0
push edx
mov byte [esp + 0x1b0], 0
call fcn.00424c40
mov esi, dword [esp + 0x40]
add esp, 0xc
push esi
lea eax, [esp + 0x1a8]
push str._s.tmp
push eax
call fcn.004217fd
lea ecx, [esp + 0x1b0]
add esp, 0xc
push ecx
mov eax, esi
call fcn.0040a850
add esp, 4
lea edx, [esp + 0x1a4]
push 0x447988
push edx
call fcn.00422167
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x40841d
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea ebx, [ebx]
lea eax, [esp + 0x1a4]
push 0x447988
push eax
call fcn.00422167
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x40841d
push 0x64
inc esi
call edi
cmp esi, 0x64
jl 0x4083e0
lea ecx, [esp + 0x1a4]
push ecx
call fcn.0040aa10
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 0x408440
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 0x408454
lea edi, [esp + 0x3b4]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408465
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 0x40852d
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.00403cf0
mov esi, eax
add esp, 8
test esi, esi
jne 0x408573
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, 3
jb 0x408434
xor ebx, ebx
cmp ebp, ebx
je 0x4084e6
push ebp
call fcn.004221f5
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 0x40861c
push ecx
call edi
push esi
lea edx, [esp + 0x1c]
push str.UpdateStrategyToLdmFile_DeleteFile_Fail_2__FilePath:__s_
push edx
call fcn.00409670
mov eax, dword [esp + 0x24]
add esp, 0xc
push ebx
push eax
push 0x453d09
call fcn.0040d390
jmp 0x407fe5
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.00409670
mov eax, dword [esp + 0x24]
add esp, 0xc
push 0
push eax
push 0x453d09
call fcn.0040d390
mov byte [esp + 0x9d0], 0
jmp 0x407ef2
test ebp, ebp
je 0x408580
push ebp
call fcn.004221f5
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.00409670
mov edx, dword [esp + 0x2c]
add esp, 0x14
push 0
push edx
push 0x453d09
call fcn.0040d390
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 0x4085ea
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 0x408615
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x408734
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
cmp eax, ebx
jne 0x408662
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.00409670
mov edx, dword [esp + 0x28]
add esp, 0x10
push ebx
push edx
push 0x453d09
call fcn.0040d390
jmp 0x4080a8
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 0x408689
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 0x4086b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x408734
push edi
lea ecx, [esp + 0x1c]
push str.UpdateStrategyToExeFile_fopen_Fail__FilePath:__s_
push ecx
call fcn.00409670
mov edx, dword [esp + 0x24]
add esp, 0xc
push 0
push edx
push 0x453d09
call fcn.0040d390
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 0x408704
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 0x40872f
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.0042179d
add esp, 0x9c0
ret