Function at 0x430020
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4abced
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x54
mov eax, dword [0x4d9180]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x5c]
call fcn.00429440
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x5c]
cmp edx, 7
jbe 0x430081
test ecx, ecx
je 0x430228
cmp edx, 7
lea eax, [ebp - 0x5c]
cmova eax, ecx
cmp word [eax], 0
je 0x430228
cmp edx, 7
lea eax, [ebp - 0x5c]
cmova eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x430222
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00466e40
add esp, 0xc
lea ecx, [ebp - 0x2c]
xor edx, edx
call fcn.0042fa60
test al, al
je 0x4301ac
test esi, esi
je 0x430123
lea eax, [ebp - 0x44]
cmp esi, eax
je 0x430123
cmp dword [ebp - 0x30], 0xf
mov ecx, esi
push dword [ebp - 0x34]
cmova eax, dword [ebp - 0x44]
push eax
call fcn.0040f6b0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x430157
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x43014d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43027c
push ecx
push edx
call fcn.004557b9
add esp, 8
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 0xf
jbe 0x43019d
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x430193
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43027c
push ecx
push edx
call fcn.004557b9
add esp, 8
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x5c]
mov byte [ebp - 0x5d], 1
jmp 0x43022c
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x4301e0
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4301d6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43027c
push ecx
push edx
call fcn.004557b9
add esp, 8
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 0xf
jbe 0x430222
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x430218
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43027c
push ecx
push edx
call fcn.004557b9
add esp, 8
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x48]
mov byte [ebp - 0x5d], 0
cmp edx, 7
jbe 0x43025c
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x430252
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x430281
push edx
push ecx
call fcn.004557b9
add esp, 8
mov al, byte [ebp - 0x5d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00455352
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0047971a
call fcn.0047971a
int3