Function at 0x45e230
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2849
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x4f91a4]
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 esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 0xc8], esi
mov word [esi], ax
mov dword [ebp - 0xc0], 1
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], eax
mov word [ebp - 0xa0], ax
push 1
lea eax, [ebp - 0xa0]
mov dword [ebp - 4], 1
push eax
push ebx
call fcn.0045bd00
push 1
push 0x4eea78
lea ecx, [ebp - 0xa0]
call fcn.00408850
mov edx, dword [ebp - 0xbc]
cmp word [edx], 0
jne 0x45e2eb
xor ecx, ecx
jmp 0x45e309
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0xc4], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45e2f6
sub ecx, dword [ebp - 0xc4]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xa0]
call fcn.00408850
push 4
push 0x4d6d94
lea ecx, [ebp - 0xa0]
call fcn.00408850
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
push 0x4d6d88
push dword [ebp - 0xbc]
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 2
push ebx
push eax
mov ecx, edi
call fcn.0045be60
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
push 0x4d6d90
push dword [ebp - 0xbc]
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push ebx
push eax
mov ecx, edi
call fcn.0045be60
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
push 0x4d6d8c
push dword [ebp - 0xbc]
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push ebx
push eax
mov ecx, edi
call fcn.0045be60
xor eax, eax
mov dword [ebp - 0x14], 7
push eax
push 0x4eeb4c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00407070
xor eax, eax
mov byte [ebp - 4], 5
push eax
push 0x4eeb4c
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00407070
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 6
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45e4b5
push ebx
lea eax, [ebp - 0xb8]
mov ecx, edi
push eax
call fcn.0045c360
mov ebx, eax
lea eax, [ebp - 0x28]
cmp eax, ebx
je 0x45e46b
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x45e44e
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004085f0
xor eax, eax
mov dword [ebp - 0x14], 7
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.004097b0
mov eax, dword [ebp - 0xa4]
mov byte [ebp - 4], 6
cmp eax, 8
jb 0x45e48d
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.004085f0
cmp dword [ebp - 0x44], 8
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x40]
cmovae edx, dword [ebp - 0x58]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push edx
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
mov ecx, edi
call fcn.00458e60
jmp 0x45e5c7
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45e519
push ebx
lea eax, [ebp - 0xb8]
mov ecx, edi
push eax
call fcn.0045c360
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.00409fd0
mov eax, dword [ebp - 0xa4]
mov byte [ebp - 4], 6
cmp eax, 8
jb 0x45e509
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.004085f0
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x70]
cmovae ecx, dword [ebp - 0x70]
jmp 0x45e5af
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45e573
push ebx
lea eax, [ebp - 0xb8]
mov ecx, edi
push eax
call fcn.0045c280
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00409fd0
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 6
call fcn.004065a0
cmp dword [ebp - 0x74], 8
lea ecx, [ebp - 0x88]
cmovae ecx, dword [ebp - 0x88]
jmp 0x45e5af
cmp dword [ebp - 0x8c], 8
lea eax, [ebp - 0xa0]
cmovae eax, dword [ebp - 0xa0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45e5de
push ebx
lea ecx, [ebp - 0x28]
call fcn.00406550
cmp dword [ebp - 0x8c], 8
lea ecx, [ebp - 0xa0]
cmovae ecx, dword [ebp - 0xa0]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push ecx
push eax
mov ecx, edi
call fcn.00459130
test al, al
je 0x45e5de
lea eax, [ebp - 0x40]
cmp esi, eax
je 0x45e5de
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00407170
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x45e5f3
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004085f0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x45e61c
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004085f0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x45e645
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004085f0
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x45e66e
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004085f0
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x60], 0
cmp eax, 8
jb 0x45e69d
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.004085f0
mov ecx, dword [ebp - 0x8c]
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
cmp ecx, 8
jb 0x45e6d2
inc ecx
push ecx
push dword [ebp - 0xa0]
lea ecx, [ebp - 0xa0]
call fcn.004085f0
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.0046100d
mov esp, ebp
pop ebp
ret 0xc