Function at 0x477d90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a9e9
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x58c758]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x54], 0
mov ecx, dword [ebp + 0xc]
call fcn.0045c600
test eax, eax
jne 0x477df4
push 0x540868
mov ecx, dword [ebp + 8]
call fcn.00401e30
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x54]
or eax, 1
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
jmp 0x4780f7
call fcn.00477d30
test eax, eax
je 0x477e22
push 0x548a08
mov ecx, dword [ebp + 8]
call fcn.00401e30
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x54]
or ecx, 1
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp + 8]
jmp 0x4780f7
push 0x5463cc
lea edx, [ebp - 0x2c]
push edx
call fcn.00401270
add esp, 8
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.0043e290
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x477e77
push str.leakrepair.dat
mov ecx, dword [ebp + 8]
call fcn.00401e30
mov eax, dword [ebp - 0x54]
or eax, 1
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401eb0
mov eax, dword [ebp + 8]
jmp 0x4780f7
lea ecx, [ebp - 0x28]
call fcn.00462c30
mov byte [ebp - 4], 2
mov byte [ebp - 4], 3
push 0
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0043e290
push eax
call fcn.004640d0
add esp, 0xc
jmp 0x477ec9
mov dword [ebp - 4], 2
jmp 0x477ef2
lea ecx, [ebp - 0x28]
call fcn.00462d00
push eax
push 0x548988
push 0x58f750
call fcn.004045b0
add esp, 0xc
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x28]
call fcn.00499910
jmp 0x477f2a
lea ecx, [ebp - 0x38]
call fcn.00478140
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0045c5d0
push eax
lea ecx, [ebp - 0x38]
call fcn.00474e80
movzx edx, al
test edx, edx
je 0x478054
lea ecx, [ebp - 0x38]
call fcn.004a3db0
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 4
call fcn.004086e0
test eax, eax
jne 0x477f66
jmp 0x477f22
mov dword [ebp - 0x40], 0
jmp 0x477f78
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0xc]
call fcn.0045c600
cmp dword [ebp - 0x40], eax
jge 0x47804f
mov ecx, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00478110
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
call fcn.004086e0
test eax, eax
jne 0x477fa6
jmp 0x477f6f
mov ecx, dword [ebp - 0x3c]
add ecx, 4
call fcn.0043e290
push eax
mov ecx, dword [ebp - 0x44]
call fcn.00452180
test eax, eax
jne 0x47804a
mov edx, dword [ebp - 0x3c]
cmp dword [edx + 0x24], 0x20
je 0x477ff1
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x24], 0
je 0x477ff1
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx + 0x24], 1
je 0x477ff1
mov edx, dword [ebp - 0x3c]
cmp dword [edx + 0x24], 2
je 0x477ff1
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x24], 4
je 0x477ff1
jmp 0x47804f
mov ecx, dword [ebp - 0x44]
cmp dword [ecx + 8], 0
je 0x478003
mov dword [ebp - 0x48], 0x20
jmp 0x47800a
mov dword [ebp - 0x48], 1
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x48]
cmp eax, dword [edx + 0x24]
je 0x478048
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x24]
push eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx]
push edx
push 0x548960
push 0x58f750
call fcn.004045b0
add esp, 0x14
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x48]
mov dword [eax + 0x24], ecx
mov dword [ebp - 0x30], 1
jmp 0x47804f
jmp 0x477f6f
jmp 0x477f22
mov byte [ebp - 4], 5
cmp dword [ebp - 0x30], 0
je 0x478075
push 1
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0043e290
push eax
call fcn.004781c0
add esp, 0xc
jmp 0x4780a0
mov dword [ebp - 4], 2
jmp 0x4780c6
push 0x540868
mov ecx, dword [ebp + 8]
call fcn.00401e30
mov ecx, dword [ebp - 0x54]
or ecx, 1
mov dword [ebp - 0x54], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00462ca0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401eb0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret