Function at 0x442630
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4d54
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x4c9860]
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 - 0xc0], edi
mov dword [ebp - 0xbc], 0
xor ebx, ebx
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00442be0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], ebx
je 0x4427a8
lea ecx, [ebp - 0x70]
call fcn.00433bc0
mov esi, eax
mov byte [ebp - 4], 3
push 1
push 0x4b3f78
lea ecx, [ebp - 0x28]
call fcn.004035b0
push 0xffffffffffffffff
push ebx
push esi
mov ecx, eax
call fcn.004034a0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x5c], 8
jb 0x4426e7
push dword [ebp - 0x70]
call fcn.0047cf40
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
cmp dword [ebp - 0x18], eax
je 0x4427a8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x4427a8
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xac]
call fcn.0041dab0
mov eax, dword [ebp - 0xac]
mov dword [edi], eax
mov eax, dword [ebp - 0xa8]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0xa4]
mov dword [edi + 8], eax
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xbc], 1
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
jb 0x44278a
push dword [ebp - 0x28]
call fcn.0047cf40
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], al
mov eax, edi
jmp 0x442bbd
lea ecx, [ebp - 0x58]
call fcn.00433970
mov edi, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa0]
call fcn.00433830
mov esi, eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x88]
push eax
call fcn.0041e610
mov ecx, eax
call fcn.0044eb20
mov byte [ebp - 4], 6
push esi
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.00403c70
add esp, 4
mov byte [ebp - 4], 7
push edi
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.00403c70
add esp, 4
mov byte [ebp - 4], 9
cmp dword [ebp - 0x5c], 8
jb 0x442813
push dword [ebp - 0x70]
call fcn.0047cf40
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x74], 8
jb 0x44283f
push dword [ebp - 0x88]
call fcn.0047cf40
add esp, 4
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x8c], 8
jb 0x442871
push dword [ebp - 0xa0]
call fcn.0047cf40
add esp, 4
xor eax, eax
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x44], 8
jb 0x4428a3
push dword [ebp - 0x58]
call fcn.0047cf40
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp dword [ebp - 0x30], eax
je 0x442b2c
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x442b2c
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov byte [ebp - 4], 0xd
push 0
push 1
lea edx, [ebp - 0xb8]
lea ecx, [ebp - 0x40]
call fcn.004460f0
mov esi, dword [ebp - 0xb8]
add esp, 8
cmp esi, dword [ebp - 0xb4]
je 0x442a98
lea esp, [esp]
lea ecx, [ebp - 0x88]
call fcn.00433bc0
mov edi, eax
mov byte [ebp - 4], 0xe
push 0x4b3f78
mov edx, esi
lea ecx, [ebp - 0xa0]
call fcn.00421050
add esp, 4
mov byte [ebp - 4], 0xf
push edi
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.00403c70
add esp, 4
mov edi, eax
mov byte [ebp - 4], 0x10
cmp edi, ebx
jae 0x4429c7
mov eax, dword [ebp - 0xac]
cmp eax, edi
ja 0x4429c7
sub edi, eax
mov eax, 0x2aaaaaab
imul edi
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp ebx, dword [ebp - 0xa4]
jne 0x4429a9
push ecx
lea ecx, [ebp - 0xac]
call fcn.0041f630
mov ebx, dword [ebp - 0xa8]
lea eax, [edi + edi*2]
mov edi, dword [ebp - 0xac]
lea eax, [edi + eax*8]
push eax
push ebx
call fcn.00426280
add ebx, 0x18
mov dword [ebp - 0xa8], ebx
jmp 0x4429f7
cmp ebx, dword [ebp - 0xa4]
jne 0x4429e1
push ecx
lea ecx, [ebp - 0xac]
call fcn.0041f630
mov ebx, dword [ebp - 0xa8]
push edi
push ebx
call fcn.00426280
add ebx, 0x18
mov dword [ebp - 0xa8], ebx
mov edi, dword [ebp - 0xac]
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0x44], 8
jb 0x442a0c
push dword [ebp - 0x58]
call fcn.0047cf40
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x8c], 8
jb 0x442a3b
push dword [ebp - 0xa0]
call fcn.0047cf40
add esp, 4
xor eax, eax
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x74], 8
jb 0x442a70
push dword [ebp - 0x88]
call fcn.0047cf40
add esp, 4
xor eax, eax
add esi, 0x18
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
cmp esi, dword [ebp - 0xb4]
jne 0x442930
jmp 0x442a9e
mov edi, dword [ebp - 0xac]
mov esi, dword [ebp - 0xc0]
mov eax, dword [ebp - 0xa4]
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xbc], 1
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0xb8]
test ecx, ecx
je 0x442b6e
push dword [ebp - 0xc4]
mov edx, dword [ebp - 0xb4]
push ecx
call fcn.004044c0
push dword [ebp - 0xb8]
call fcn.0047cf40
add esp, 0xc
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
jmp 0x442b6e
mov esi, dword [ebp - 0xc0]
mov dword [ebp - 0xac], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xbc], 1
mov byte [ebp - 4], 2
cmp dword [ebp - 0x2c], 8
jb 0x442b83
push dword [ebp - 0x40]
call fcn.0047cf40
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
jb 0x442ba8
push dword [ebp - 0x28]
call fcn.0047cf40
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
mov byte [ebp - 4], al
mov eax, esi
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.0047cf45
mov esp, ebp
pop ebp
ret