Function at 0x478a30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576b34
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x5fc150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x290], edi
push 0x60fe98
mov dword [ebp - 0x2b4], 0x60fe98
call fcn.005168d0
add esp, 4
test eax, eax
je 0x478a8a
push eax
call fcn.00516a24
add esp, 4
mov dword [ebp - 4], 0
mov esi, dword [0x60fc7c]
add esi, 0x58
cmp dword [esi + 0x14], 8
jb 0x478aa2
mov esi, dword [esi]
cmp word [esi], 0
je 0x479442
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x479442
mov ecx, dword [0x60fc7c]
push 0
push 0
push 0x935
movzx eax, byte [ecx + 0x70]
mov byte [ebp - 0x294], al
movzx eax, byte [ecx + 0x71]
mov byte [ebp - 0x298], al
mov eax, dword [edi + 0x580]
mov dword [ebp - 0x2b0], eax
lea eax, [edi + 0x4d0]
mov ecx, eax
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 0x2b8], eax
mov dword [edi + 0x580], eax
call fcn.0040d9f0
mov dword [ebp - 0x2bc], eax
mov eax, dword [edi + 0x4f0]
mov dword [ebp - 0x2c0], eax
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 0
mov byte [ebp - 4], 1
lea ebx, [edi + 0x798]
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x2ac], ebx
push eax
mov ecx, ebx
call fcn.00443990
mov ecx, dword [ebp - 0x288]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x28c]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x478b95
push 0x588410
push eax
mov ecx, ebx
call fcn.0044a2d0
lea eax, [ebp - 0x28c]
mov ecx, ebx
push eax
call fcn.00443990
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x278], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x280]
push dword [ebp - 0x298]
mov ecx, edi
push dword [ebp - 0x294]
push eax
lea eax, [ebp - 0x28c]
push eax
push esi
call fcn.00471340
mov eax, dword [edi]
lea ecx, [ebp - 0x1f0]
push dword [eax + 4]
call fcn.0043df40
mov byte [ebp - 4], 3
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x27c]
mov esi, 1
sub ecx, dword [ebp - 0x280]
imul ecx
mov dword [ebp - 0x294], esi
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [ebp - 0x2a4], ecx
cmp ecx, esi
jbe 0x478c55
cmp ecx, 0xc8
jb 0x478c39
mov eax, 0x51eb851f
mul ecx
mov esi, edx
shr esi, 5
mov dword [ebp - 0x294], esi
push str.Replace_In_Files_progress...
push dword [edi + 0x7a4]
lea ecx, [ebp - 0x1f0]
call fcn.00444800
mov ecx, dword [ebp - 0x2a4]
xor ebx, ebx
mov dword [ebp - 0x298], esi
test ecx, ecx
je 0x478f42
xor edi, edi
mov dword [ebp - 0x29c], ebx
mov dword [ebp - 0x2a0], edi
cmp dword [ebp - 0x1ec], 0
je 0x478c97
push 0
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
setne al
test al, al
jne 0x478f3c
mov ecx, dword [ebp - 0x27c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x280]
sub ecx, esi
imul ecx
mov byte [ebp - 0x271], 0
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jbe 0x47909b
cmp dword [esi + edi + 0x14], 8
lea eax, [esi + edi]
jb 0x478cd1
mov eax, dword [eax]
push eax
call fcn.00439ba0
mov ecx, eax
call fcn.0041b150
mov esi, eax
test esi, esi
jne 0x478d3f
mov ecx, dword [ebp - 0x27c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x280]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jbe 0x47909b
cmp dword [esi + edi + 0x14], 8
lea eax, [esi + edi]
jb 0x478d17
mov eax, dword [eax]
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push eax
call fcn.00439ba0
mov ecx, eax
call fcn.0041b7d0
mov esi, eax
mov byte [ebp - 0x271], 1
test esi, esi
je 0x478e7a
call fcn.00439ba0
push dword [esi + 0x10]
mov edi, dword [ebp - 0x2b8]
mov ecx, edi
push 0
push 0x936
call fcn.0040d9f0
push 0
push 0
push 0x859
mov ecx, edi
call fcn.0040d9f0
cmp dword [esi + 0x34], 0
je 0x478d76
mov eax, 0xfde9
push 0
push eax
push 0x7f5
mov ecx, edi
call fcn.0040d9f0
mov eax, dword [ebp - 0x290]
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 0
mov dword [eax + 0x4f0], esi
call fcn.0043dc20
mov byte [ebp - 4], 5
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x27c]
mov edi, dword [ebp - 0x280]
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jbe 0x47909b
mov eax, dword [ebp - 0x2a0]
add eax, edi
cmp dword [eax + 0x14], 8
jb 0x478df5
mov eax, dword [eax]
mov ecx, dword [ebp - 0x2ac]
push 0xffffffffffffffff
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x270]
push eax
push 1
push dword [0x60fc7c]
push 1
call fcn.00444d70
add dword [ebp - 0x2a8], eax
test eax, eax
je 0x478e43
cmp dword [esi + 0x88], 8
lea eax, [esi + 0x74]
jb 0x478e31
mov eax, dword [eax]
push 0
push 0
push eax
push esi
call fcn.00439ba0
mov ecx, eax
call fcn.0041c6e0
cmp byte [ebp - 0x271], 0
je 0x478e65
mov eax, dword [ebp - 0x290]
push dword [eax + 0x580]
push esi
call fcn.00439ba0
mov ecx, eax
call fcn.0041a3b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x264]
call fcn.0043e780
mov edi, dword [ebp - 0x2a0]
mov ecx, dword [ebp - 0x27c]
mov esi, dword [ebp - 0x280]
sub ecx, esi
mov eax, dword [ebp - 0x298]
cmp ebx, eax
jne 0x478ee0
add eax, dword [ebp - 0x294]
mov dword [ebp - 0x298], eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jbe 0x47909b
cmp dword [esi + edi + 0x14], 8
lea eax, [esi + edi]
jb 0x478ec3
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x29c]
lea ecx, [ebp - 0x1f0]
xor edx, edx
div dword [ebp - 0x2a4]
push eax
call fcn.0044a740
jmp 0x478f1f
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jbe 0x47909b
cmp dword [esi + edi + 0x14], 8
lea eax, [esi + edi]
jb 0x478f05
mov eax, dword [eax]
cmp dword [ebp - 0x1ec], 0
je 0x478f1f
push eax
push 0
push 0xc
push dword [ebp - 0xdc]
call dword [sym.imp.USER32.dll_SendMessageW]
add dword [ebp - 0x29c], 0x64
inc ebx
add edi, 0x18
mov dword [ebp - 0x2a0], edi
cmp ebx, dword [ebp - 0x2a4]
jb 0x478c73
mov edi, dword [ebp - 0x290]
lea ecx, [ebp - 0x1f0]
call fcn.004404c0
push dword [ebp - 0x2bc]
lea ecx, [edi + 0x4d0]
push 0
push 0x936
call fcn.0040d9f0
mov eax, dword [ebp - 0x2c0]
mov dword [edi + 0x4f0], eax
mov eax, dword [ebp - 0x2b0]
mov dword [edi + 0x580], eax
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 7
mov ebx, dword [ebp - 0x2a8]
cmp ebx, 1
jne 0x4790a5
push 0x2c
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], eax
push str.Replace_in_Files:_1_occurrence_was_replaced.
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
call fcn.00406c80
mov byte [ebp - 4], 8
lea eax, [ebp - 0x40]
push eax
push str.find_status_replaceinfiles_1_replaced
lea eax, [ebp - 0x88]
push eax
lea ecx, [edi + 0x300]
call fcn.0045ff80
mov esi, eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x479033
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x479016
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00404b40
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x74]
cmp eax, 8
jb 0x479052
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x479082
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jmp 0x479309
push str.invalid_vector_T__subscript
call fcn.00515a37
push 0x3a
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 0
push str.Replace_in_Files:__INT_REPLACE__occurrences_were_replaced.
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.00406c80
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x58]
push eax
push str.find_status_replaceinfiles_nb_replaced
lea eax, [ebp - 0xa0]
push eax
lea ecx, [edi + 0x300]
call fcn.0045ff80
mov esi, eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x479132
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x479115
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00404b40
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x8c]
cmp eax, 8
jb 0x479154
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x47918a
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x44], 7
push 0xd
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], eax
push str._INT_REPLACE_
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], eax
mov word [ebp - 0x70], ax
call fcn.00406c80
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0xd0]
push ebx
push eax
call fcn.0047c630
add esp, 8
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x70]
push eax
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [ebp - 0x2b0], esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x28]
push eax
call fcn.00406ac0
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0xb8]
push eax
mov byte [ebp - 4], 0xd
call fcn.004274c0
add esp, 0x24
mov esi, eax
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x47925e
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x479241
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00404b40
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0xa4]
cmp eax, 8
jb 0x479280
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0xa4], 7
mov dword [ebp - 0xa8], 0
mov word [ebp - 0xb8], ax
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0xbc]
cmp eax, 8
jb 0x4792bf
inc eax
lea ecx, [ebp - 0xd0]
push eax
push dword [ebp - 0xd0]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0xbc], 7
mov dword [ebp - 0xc0], 0
mov word [ebp - 0xd0], ax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x4792f5
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov ecx, dword [ebp - 0x2ac]
lea eax, [ebp - 0x28]
push 4
push eax
call fcn.0044a7f0
mov bl, 1
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x479335
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1f0]
call fcn.0043ecd0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x4793cc
push dword [ebp - 0x2b4]
lea ecx, [ebp - 0x280]
push ecx
push dword [ebp - 0x27c]
push eax
call fcn.00401f90
mov ecx, dword [ebp - 0x278]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x280]
add esp, 0x10
sub ecx, esi
imul ecx
lea ecx, [ebp - 0x280]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.004072d0
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x278], 0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x28c]
test ecx, ecx
je 0x479444
push dword [ebp - 0x2b4]
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x288]
push ecx
call fcn.00401f90
mov ecx, dword [ebp - 0x284]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x28c]
add esp, 0x10
sub ecx, esi
imul ecx
lea ecx, [ebp - 0x28c]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.004072d0
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 0
jmp 0x479444
xor bl, bl
mov dword [ebp - 4], 0xffffffff
push 0x60fe98
call fcn.0051692d
add esp, 4
test eax, eax
je 0x479465
push eax
call fcn.00516a24
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052c233
mov esp, ebp
pop ebp
ret