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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43f708
mov eax, dword fs:[0]
push eax
sub esp, 0xde8
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0xde0], eax
push ebx
push esi
push edi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0xdf8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, edx
xor esi, esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], esi
call fcn.00413c41
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x404a71
push 0x80004005
call fcn.0040a000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x208
lea ecx, [esp + 0x7c8]
push esi
push ecx
mov dword [esp + 0xe0c], esi
call fcn.00425400
lea edx, [esp + 0x7d0]
add esp, 0xc
mov eax, ebx
sub edx, ebx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404ab0
lea eax, [esp + 0x7c4]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404ac2
mov edx, dword [0x4479a0]
mov ecx, dword [0x4479a4]
mov dword [eax], edx
mov edx, dword [0x4479a8]
mov dword [eax + 4], ecx
mov cl, byte [0x4479ac]
mov dword [eax + 8], edx
mov byte [eax + 0xc], cl
xor esi, esi
push 0xa
lea ecx, [esp + 0x58]
mov dword [esp + 0x1c], esi
call fcn.004143e3
lea edx, [esp + 0x7c4]
push 0x447a48
push edx
mov byte [esp + 0xe08], 1
call fcn.0042292f
mov edi, eax
add esp, 8
mov dword [esp + 0x38], edi
test edi, edi
je 0x404fdc
push 0x10e
lea eax, [esp + 0xa0]
push esi
push eax
call fcn.00425400
add esp, 0xc
push edi
push 1
lea ecx, [esp + 0xa4]
push 0x10e
push ecx
call fcn.004233a6
movzx edx, word [esp + 0x1b8]
mov ax, word [esp + 0xb6]
mov ecx, 1
add esp, 0x10
mov dword [esp + 0x28], edx
cmp cx, ax
jne 0x404b97
push 0x118
call fcn.00413bfc
mov esi, eax
mov dword [esp + 0x14], eax
mov eax, 0x118
add esp, 4
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], eax
jmp 0x404bdb
mov edx, 2
cmp dx, ax
jne 0x404bdf
push 0x124
call fcn.00413bfc
mov esi, eax
mov ax, word [esp + 0xa6]
mov ecx, 0x124
add esp, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x40], 0x124
cmp ax, cx
jae 0x404bd7
movzx edx, ax
mov dword [esp + 0x34], edx
jmp 0x404bdb
mov dword [esp + 0x34], ecx
test esi, esi
jne 0x404c16
mov dword [esp + 0x20], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push str.UpdateSimpleLdxFile_new_failed_with_error_code:__d
push eax
call fcn.00409910
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0
push ecx
push 0x453d11
call fcn.0040d890
jmp 0x404fcf
push edi
call fcn.0042309e
add esp, 4
test eax, eax
jne 0x404fc6
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x10]
push edx
push 0
push esi
call fcn.00425400
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
add esp, 0xc
push edi
push 1
push eax
push esi
call fcn.004233a6
add esp, 0x10
cmp eax, 1
je 0x404c66
push edi
call fcn.004230d2
add esp, 4
test eax, eax
jne 0x4052b6
cmp dword [esp + 0x18], 0
jne 0x404fa5
push 0x140
lea ecx, [esp + 0x1b0]
push 0
push ecx
call fcn.00425400
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x1b8]
add esp, 0xc
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404c95
lea edi, [esp + 0x1ac]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404ca7
mov bx, word [0x4478c8]
mov word [edi], bx
lea ecx, [esp + 0xa8]
mov eax, 0x448410
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404ce5
test dl, dl
je 0x404ce1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404ce5
add eax, 2
add ecx, 2
test dl, dl
jne 0x404cc5
xor eax, eax
jmp 0x404cea
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x404d33
lea eax, [esp + 0xa8]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404cf7
lea edi, [esp + 0x1ac]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404d08
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 + 0x1ac]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404d28
mov word [edi], bx
push str..sec
lea ecx, [esp + 0x28]
call fcn.00409b60
push 0x448410
lea ecx, [esp + 0x20]
mov byte [esp + 0xe04], 2
call fcn.00409b60
xor ebx, ebx
push ebx
lea edx, [esp + 0x1b0]
mov byte [esp + 0xe04], 3
push edx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
test esi, esi
je 0x404db5
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x90]
push ecx
lea edx, [esp + 0x9c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x404dae
lea eax, [esp + 0x44]
test eax, eax
je 0x404dae
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x44], ecx
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
mov ax, word [esp + 0xa6]
mov edx, 1
cmp dx, ax
jne 0x404e13
mov eax, dword [esp + 0x10]
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404dd0
lea edi, [esp + 0x1ac]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404de1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [eax + 0x108], ebx
jne 0x404e66
mov ecx, dword [esp + 0x44]
mov edx, eax
cmp dword [edx + 0x104], ecx
jmp 0x404e64
mov edx, 2
cmp dx, ax
jne 0x404e85
mov eax, dword [esp + 0x10]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404e23
lea edi, [esp + 0x1ac]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404e34
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [eax + 0x104], ebx
jne 0x404e66
mov ecx, dword [esp + 0x44]
mov edx, eax
cmp dword [edx + 0x100], ecx
je 0x404e6e
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push 0x447a60
push ecx
call fcn.00409910
add esp, 0xc
mov edx, dword [esp + 0x24]
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 0x404eab
push esi
lea ecx, [esp + 0x28]
call fcn.00409e60
mov edx, dword [esp + 0x24]
lea eax, [esi + 1]
push eax
push edx
call fcn.00423b01
push eax
call fcn.004097d0
add esp, 0xc
test esi, esi
jl 0x4052f8
mov eax, dword [esp + 0x24]
cmp esi, dword [eax - 8]
jg 0x4052f8
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x24]
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 0x404f04
push esi
lea ecx, [esp + 0x20]
call fcn.00409e60
mov edx, dword [esp + 0x1c]
lea eax, [esi + 1]
push eax
push edx
call fcn.00423b01
push eax
call fcn.004097d0
add esp, 0xc
test esi, esi
jl 0x4052f8
mov eax, dword [esp + 0x1c]
cmp esi, dword [eax - 8]
jg 0x4052f8
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x1c]
mov byte [esi + ecx], 0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
push edx
push eax
call fcn.004233d0
add esp, 8
test eax, eax
je 0x404f55
mov dword [esp + 0x18], 1
mov byte [esp + 0xe00], 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 0x404f7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xe00], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404fa5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0042309e
add esp, 4
test eax, eax
je 0x404c27
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x2c]
push esi
call fcn.00413c2b
add esp, 4
push edi
call fcn.004229bd
mov esi, dword [esp + 0x2c]
add esp, 4
push 0xa
lea ecx, [esp + 0x74]
call fcn.004143e3
lea ecx, [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x40]
mov byte [esp + 0xe04], 4
call fcn.0040a4c0
add esp, 4
cmp dword [esp + 0x7c], esi
jg 0x405015
cmp dword [esp + 0x18], 0
je 0x405590
mov ebx, dword [esp + 0x2c]
push 0x208
lea edx, [esp + 0xbe1]
push 0
push edx
mov byte [esp + 0xbe8], 0
call fcn.00425400
lea edx, [esp + 0xbe8]
add esp, 0xc
mov eax, ebx
sub edx, ebx
nop
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x405040
lea eax, [esp + 0xbdc]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405052
mov ecx, dword [str.ldcab.ldx.tmp]
mov edx, dword [0x447bec]
mov dword [eax], ecx
mov ecx, dword [0x447bf0]
mov dword [eax + 4], edx
mov dx, word [0x447bf4]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [esp + 0xbdc]
push eax
call fcn.0040a100
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 4
test eax, eax
je 0x405124
push 0x208
lea ecx, [esp + 0x9d1]
push 0
push ecx
mov byte [esp + 0x9d8], 0
call fcn.00425400
lea edx, [esp + 0x9d8]
add esp, 0xc
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x4050c7
lea eax, [esp + 0x9cc]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4050e0
mov edx, dword [str.ldcab.ldx]
mov ecx, dword [0x447bfc]
mov dword [eax], edx
mov dx, word [0x447c00]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [esp + 0x9cc]
push eax
call esi
lea ecx, [esp + 0x9cc]
push ecx
lea edx, [esp + 0xbe0]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0x208
lea eax, [esp + 0x1b0]
push 0
push eax
call fcn.00425400
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
add esp, 0xc
push 0x208
lea ecx, [esp + 0x1b0]
push ecx
push 0
call edi
lea eax, [esp + 0x1ac]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405160
sub eax, edx
add eax, 0xffffffff
mov bl, 0x5c
js 0x40517e
cmp byte [esp + eax + 0x1ac], bl
je 0x40517e
sub eax, 1
jns 0x405170
mov byte [esp + eax + 0x1ac], 0
lea eax, [esp + 0x1ac]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405190
mov edx, dword [0x447c04]
mov ecx, dword [0x447c08]
mov dword [eax], edx
mov edx, dword [0x447c0c]
mov dword [eax + 4], ecx
mov cl, byte [0x447c10]
mov dword [eax + 8], edx
lea edx, [esp + 0x1ac]
push edx
mov byte [eax + 0xc], cl
call fcn.0040a100
add esp, 4
test eax, eax
je 0x4051d9
lea eax, [esp + 0x1ac]
push eax
call esi
lea ecx, [esp + 0x7c4]
push ecx
call fcn.0040a100
add esp, 4
test eax, eax
je 0x4051f7
lea edx, [esp + 0x7c4]
push edx
call esi
push 0x208
lea eax, [esp + 0x5c0]
push 0
push eax
call fcn.00425400
add esp, 0xc
push 0x208
lea ecx, [esp + 0x5c0]
push ecx
push 0
call edi
lea eax, [esp + 0x5bc]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405230
sub eax, edx
add eax, 0xffffffff
js 0x40524e
mov edi, edi
cmp byte [esp + eax + 0x5bc], bl
je 0x40524e
sub eax, 1
jns 0x405240
push 0x208
lea edx, [esp + 0x3b8]
push 0
push edx
mov byte [esp + eax + 0x5c8], 0
call fcn.00425400
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x3c0]
add esp, 0xc
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x405280
lea ecx, [esp + 0xa8]
mov eax, 0x448410
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405302
test dl, dl
je 0x4052b2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405302
add eax, 2
add ecx, 2
test dl, dl
jne 0x405296
xor eax, eax
jmp 0x405307
mov dword [esp + 0x20], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x18]
push str.UpdateSimpleLdxFile_when_fread_FileSummary_struct_with_error_code:__d
push edx
call fcn.00409910
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0
push eax
push 0x453d11
call fcn.0040d890
push esi
call fcn.00413c2b
add esp, 4
xor esi, esi
jmp 0x404fc2
push 0x80070057
call fcn.0040a000
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405359
lea edi, [esp + 0x3b4]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405313
mov ax, word [0x4478c8]
mov word [edi], ax
lea eax, [esp + 0xa8]
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405330
lea edi, [esp + 0x3b4]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405341
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.00413c41
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405373
push 0x80004005
call fcn.0040a000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x3b4]
push ecx
lea edx, [esp + 0x1c]
push str.GetFilesInTree:_s
mov bl, 5
push edx
mov byte [esp + 0xe0c], bl
call fcn.00409910
mov esi, dword [esp + 0x24]
add esp, 0xc
push 0
push esi
push 0x453d11
call fcn.0040d890
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x3b8]
call fcn.0040a4c0
add esp, 4
lea ecx, [esp + 0x3b4]
push ecx
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0xb0]
lea edx, [esp + 0x5c4]
call fcn.004072b0
movzx eax, al
add esp, 8
test eax, eax
je 0x40541e
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x3b8]
push ecx
lea edx, [esp + 0x5c4]
push edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x60]
call fcn.00406680
add esp, 0xc
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
je 0x40556c
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
cmp eax, 0x404
je 0x4054cf
cmp eax, 0xc04
je 0x4054cf
mov eax, dword [esp + 0x20]
sub eax, 1
je 0x405493
sub eax, 1
jne 0x4054fb
lea eax, [esp + 0x30]
push eax
mov edi, 0xa
call fcn.0040f260
add esp, 4
mov byte [esp + 0xe00], 7
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00409910
add esp, 8
lea ecx, [esp + 0x30]
mov byte [esp + 0xe00], bl
call fcn.0040a070
jmp 0x4054fb
lea edx, [esp + 0x28]
push edx
mov edi, 9
call fcn.0040f260
add esp, 4
mov byte [esp + 0xe00], 6
mov eax, dword [eax]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00409910
add esp, 8
lea ecx, [esp + 0x28]
mov byte [esp + 0xe00], bl
call fcn.0040a070
jmp 0x4054fb
mov eax, dword [esp + 0x20]
sub eax, 1
je 0x4054e9
sub eax, 1
jne 0x4054fb
push 0x447c38
lea ecx, [esp + 0x18]
push ecx
jmp 0x4054f3
push 0x447c28
lea edx, [esp + 0x18]
push edx
call fcn.00409910
add esp, 8
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push str.UpdateLdxFile_in_WriteFileSummaryToLdf_function__failed_with_result_code:__d
push ecx
call fcn.00409910
mov esi, dword [esp + 0x24]
add esp, 0xc
push 0
push esi
push 0x453d11
call fcn.0040d890
lea edx, [esp + 0x28]
push edx
mov edi, 7
call fcn.0040f260
mov eax, dword [eax]
add esp, 4
push 0
push eax
mov eax, dword [esp + 0x1c]
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 0x40556c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0xe00], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405590
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x70]
mov byte [esp + 0xe00], 1
call fcn.004144fa
lea ecx, [esp + 0x54]
mov byte [esp + 0xe00], 0
call fcn.004144fa
mov dword [esp + 0xe00], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4055dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xdf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xde0]
xor ecx, esp
call fcn.00421f65
mov esp, ebp
pop ebp
ret