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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43ee18
mov eax, dword fs:[0]
push eax
sub esp, 0xde0
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0xdd8], eax
push ebx
push esi
push edi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0xdf0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, edx
xor esi, esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x24], esi
call fcn.004133f1
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x404a51
push 0x80004005
call fcn.00409d60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
push 0x208
lea ecx, [esp + 0x7c0]
push esi
push ecx
mov dword [esp + 0xe04], esi
call fcn.00424c40
lea edx, [esp + 0x7c8]
add esp, 0xc
mov eax, edi
sub edx, edi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404a90
lea eax, [esp + 0x7bc]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404aa2
mov edx, dword [0x4479b0]
mov ecx, dword [0x4479b4]
mov dword [eax], edx
mov edx, dword [0x4479b8]
mov dword [eax + 4], ecx
mov cl, byte [0x4479bc]
mov dword [eax + 8], edx
mov byte [eax + 0xc], cl
xor ebx, ebx
push 0xa
lea ecx, [esp + 0x48]
mov dword [esp + 0x18], ebx
call fcn.00413b93
lea edx, [esp + 0x7bc]
push 0x447a7c
push edx
mov byte [esp + 0xe00], 1
call fcn.00422167
mov esi, eax
add esp, 8
mov dword [esp + 0x34], esi
test esi, esi
je 0x404e84
push 0x10e
lea eax, [esp + 0x98]
push ebx
push eax
call fcn.00424c40
add esp, 0xc
push esi
push 1
lea ecx, [esp + 0x9c]
push 0x10e
push ecx
call fcn.00422af3
movzx edx, word [esp + 0x1b0]
push esi
mov dword [esp + 0x3c], edx
call fcn.004227eb
add esp, 0x14
test eax, eax
jne 0x404e73
push 0x118
lea eax, [esp + 0x3b0]
push 0
push eax
call fcn.00424c40
mov esi, dword [esp + 0x40]
add esp, 0xc
push esi
push 1
lea ecx, [esp + 0x3b4]
push 0x118
push ecx
call fcn.00422af3
add esp, 0x10
cmp eax, 1
je 0x404b9a
push esi
call fcn.0042281f
add esp, 4
test eax, eax
jne 0x404e73
cmp dword [esp + 0x14], 0
jne 0x404e5a
push 0x140
lea edx, [esp + 0x1a8]
push 0
push edx
call fcn.00424c40
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x1b0]
add esp, 0xc
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x404bd0
lea edi, [esp + 0x1a4]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404be2
mov bx, word [0x4478d8]
mov word [edi], bx
lea ecx, [esp + 0xa0]
mov eax, 0x448368
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404c20
test dl, dl
je 0x404c1c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404c20
add eax, 2
add ecx, 2
test dl, dl
jne 0x404c00
xor eax, eax
jmp 0x404c25
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x404c6e
lea eax, [esp + 0xa0]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404c32
lea edi, [esp + 0x1a4]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404c43
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1a4]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404c63
mov word [edi], bx
lea eax, [esp + 0x3ac]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404c77
lea edi, [esp + 0x1a4]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404c88
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
push edi
lea eax, [esp + 0x1a8]
push eax
mov ebx, edi
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
test esi, esi
je 0x404cf1
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x94]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x404cea
lea ecx, [esp + 0x84]
test ecx, ecx
je 0x404cea
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
cmp dword [esp + 0x4b4], ebx
jne 0x404d03
cmp dword [esp + 0x4b0], edi
je 0x404d0b
mov dword [esp + 0x14], 1
push str..sec
lea ecx, [esp + 0x1c]
call fcn.004098c0
lea edx, [esp + 0x3ac]
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0xdfc], 2
call fcn.004098c0
mov byte [esp + 0xdf8], 3
mov edx, dword [esp + 0x18]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x404d60
push esi
lea ecx, [esp + 0x1c]
call fcn.00409bc0
mov edx, dword [esp + 0x18]
lea eax, [esi + 1]
push eax
push edx
call fcn.00423331
push eax
call fcn.00409510
add esp, 0xc
test esi, esi
jl 0x405156
mov eax, dword [esp + 0x18]
cmp esi, dword [eax - 8]
jg 0x405156
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x18]
mov byte [esi + ecx], 0
mov edx, dword [esp + 0x1c]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x404db9
push esi
lea ecx, [esp + 0x20]
call fcn.00409bc0
mov edx, dword [esp + 0x1c]
lea eax, [esi + 1]
push eax
push edx
call fcn.00423331
push eax
call fcn.00409510
add esp, 0xc
test esi, esi
jl 0x405156
mov eax, dword [esp + 0x1c]
cmp esi, dword [eax - 8]
jg 0x405156
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x1c]
mov byte [esi + ecx], 0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push edx
push eax
call fcn.00422c00
add esp, 8
test eax, eax
je 0x404e0a
mov dword [esp + 0x14], 1
mov byte [esp + 0xdf8], 2
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 0x404e32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xdf8], 1
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 0x404e5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004227eb
add esp, 4
test eax, eax
je 0x404b51
mov esi, dword [esp + 0x34]
push esi
call fcn.004221f5
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x2c]
add esp, 4
push 0xa
lea ecx, [esp + 0x64]
call fcn.00413b93
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x60]
push edx
mov byte [esp + 0xdfc], 4
call fcn.0040a1f0
add esp, 4
cmp dword [esp + 0x6c], ebx
jg 0x404ebd
cmp dword [esp + 0x14], 0
je 0x4053f1
mov edi, dword [esp + 0x38]
push 0x208
lea eax, [esp + 0xbd9]
push 0
push eax
mov byte [esp + 0xbe0], 0
call fcn.00424c40
lea edx, [esp + 0xbe0]
add esp, 0xc
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x404ee7
lea eax, [esp + 0xbd4]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404f00
mov ecx, dword [str.ldcab.ldx.tmp]
mov edx, dword [0x447ba8]
mov dword [eax], ecx
mov ecx, dword [0x447bac]
mov dword [eax + 4], edx
mov dx, word [0x447bb0]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [esp + 0xbd4]
push eax
call fcn.00409e30
add esp, 4
test eax, eax
je 0x404fca
push 0x208
lea ecx, [esp + 0x9c9]
push 0
push ecx
mov byte [esp + 0x9d0], 0
call fcn.00424c40
lea edx, [esp + 0x9d0]
add esp, 0xc
mov eax, edi
sub edx, edi
nop
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x404f70
lea eax, [esp + 0x9c4]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404f82
mov edx, dword [str.ldcab.ldx]
mov ecx, dword [0x447bb8]
mov dword [eax], edx
mov dx, word [0x447bbc]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [esp + 0x9c4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x9c4]
push ecx
lea edx, [esp + 0xbd8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0x208
lea eax, [esp + 0x1a8]
push 0
push eax
call fcn.00424c40
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
add esp, 0xc
push 0x208
lea ecx, [esp + 0x1a8]
push ecx
push 0
call esi
lea eax, [esp + 0x1a4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405002
sub eax, edx
add eax, 0xffffffff
mov bl, 0x5c
js 0x405020
cmp byte [esp + eax + 0x1a4], bl
je 0x405020
sub eax, 1
jns 0x405012
mov byte [esp + eax + 0x1a4], 0
lea eax, [esp + 0x1a4]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405030
mov edx, dword [0x447bc0]
mov ecx, dword [0x447bc4]
mov dword [eax], edx
mov edx, dword [0x447bc8]
mov dword [eax + 4], ecx
mov cl, byte [0x447bcc]
mov dword [eax + 8], edx
lea edx, [esp + 0x1a4]
push edx
mov byte [eax + 0xc], cl
call fcn.00409e30
add esp, 4
test eax, eax
je 0x40507d
lea eax, [esp + 0x1a4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x7bc]
push ecx
call fcn.00409e30
add esp, 4
test eax, eax
je 0x40509f
lea edx, [esp + 0x7bc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x208
lea eax, [esp + 0x5b8]
push 0
push eax
call fcn.00424c40
add esp, 0xc
push 0x208
lea ecx, [esp + 0x5b8]
push ecx
push 0
call esi
lea eax, [esp + 0x5b4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4050d1
sub eax, edx
add eax, 0xffffffff
js 0x4050ee
nop
cmp byte [esp + eax + 0x5b4], bl
je 0x4050ee
sub eax, 1
jns 0x4050e0
push 0x208
lea edx, [esp + 0x3b0]
push 0
push edx
mov byte [esp + eax + 0x5c0], 0
call fcn.00424c40
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x3b8]
add esp, 0xc
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x405120
lea ecx, [esp + 0xa0]
mov eax, 0x448368
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405160
test dl, dl
je 0x405152
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405160
add eax, 2
add ecx, 2
test dl, dl
jne 0x405136
xor eax, eax
jmp 0x405165
push 0x80070057
call fcn.00409d60
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4051b9
lea edi, [esp + 0x3ac]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405171
mov ax, word [0x4478d8]
mov word [edi], ax
lea eax, [esp + 0xa0]
mov edx, eax
jmp 0x405190
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405190
lea edi, [esp + 0x3ac]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4051a1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004133f1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4051d3
push 0x80004005
call fcn.00409d60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x3ac]
push ecx
lea edx, [esp + 0x18]
push str.GetFilesInTree:_s
mov bl, 5
push edx
mov byte [esp + 0xe04], bl
call fcn.00409670
mov esi, dword [esp + 0x20]
add esp, 0xc
push 0
push esi
push 0x453d09
call fcn.0040d390
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x3b0]
call fcn.0040a1f0
add esp, 4
lea ecx, [esp + 0x3ac]
push ecx
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0xa8]
lea edx, [esp + 0x5bc]
call fcn.00406fc0
movzx eax, al
add esp, 8
test eax, eax
je 0x4053cd
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x3b0]
push ecx
lea edx, [esp + 0x5bc]
push edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x50]
call fcn.00406390
add esp, 0xc
mov dword [esp + 0x24], eax
test eax, eax
je 0x4053cd
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
cmp eax, 0x404
je 0x405330
cmp eax, 0xc04
je 0x405330
mov eax, dword [esp + 0x24]
sub eax, 1
je 0x4052f4
sub eax, 1
jne 0x40535c
lea eax, [esp + 0x30]
push eax
mov edi, 0xa
call fcn.0040ec10
add esp, 4
mov byte [esp + 0xdf8], 7
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00409670
add esp, 8
lea ecx, [esp + 0x30]
mov byte [esp + 0xdf8], bl
call fcn.00409da0
jmp 0x40535c
lea edx, [esp + 0x28]
push edx
mov edi, 9
call fcn.0040ec10
add esp, 4
mov byte [esp + 0xdf8], 6
mov eax, dword [eax]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00409670
add esp, 8
lea ecx, [esp + 0x28]
mov byte [esp + 0xdf8], bl
call fcn.00409da0
jmp 0x40535c
mov eax, dword [esp + 0x24]
sub eax, 1
je 0x40534a
sub eax, 1
jne 0x40535c
push 0x447bf4
lea ecx, [esp + 0x24]
push ecx
jmp 0x405354
push 0x447be4
lea edx, [esp + 0x24]
push edx
call fcn.00409670
add esp, 8
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push str.UpdateLdxFile_in_WriteFileSummaryToLdf_function__failed_with_result_code:__d
push ecx
call fcn.00409670
mov esi, dword [esp + 0x20]
add esp, 0xc
push 0
push esi
push 0x453d09
call fcn.0040d390
lea edx, [esp + 0x28]
push edx
mov edi, 7
call fcn.0040ec10
mov eax, dword [eax]
add esp, 4
push 0
push eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4053cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0xdf8], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4053f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x60]
mov byte [esp + 0xdf8], 1
call fcn.00413caa
lea ecx, [esp + 0x44]
mov byte [esp + 0xdf8], 0
call fcn.00413caa
mov dword [esp + 0xdf8], 0xffffffff
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 0x40543e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xdf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xdd8]
xor ecx, esp
call fcn.0042179d
mov esp, ebp
pop ebp
ret