Function at 0x4124b0
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 0x4ad708
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x84
mov eax, dword [0x4d500c]
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 - 0x2c]
call fcn.00412020
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0
je 0x4127a1
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4127a1
xor eax, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 1
test esi, esi
je 0x4126f9
cmp word [esi], ax
je 0x4126f9
mov ecx, dword [ebp - 0x1c]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x4127f8
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
push 1
push 0x4c5098
push ecx
push dword [ebp - 0x60]
lea ecx, [ebp - 0x90]
call fcn.0040ab20
push 2
push 0x4c5f5c
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 2
call fcn.004047e0
mov dword [ebp - 0x5c], 0
xor ecx, ecx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x5c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x4c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, esi
mov byte [ebp - 4], 3
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4125e3
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x5c]
call fcn.004047e0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x78], xmm0
movq xmm0, qword [eax + 0x10]
mov word [eax], cx
lea ecx, [ebp - 0x44]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
lea eax, [ebp - 0x78]
push eax
movq qword [ebp - 0x68], xmm0
call fcn.00403f10
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x412666
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41265c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4127fd
push edx
push ecx
call fcn.0044b3bd
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x4126a4
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41269a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4127fd
push edx
push ecx
call fcn.0044b3bd
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp edx, 8
jb 0x4126f9
mov ecx, dword [ebp - 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4126ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4127fd
push edx
push ecx
call fcn.0044b3bd
add esp, 8
cmp dword [ebp - 0x30], 8
lea edx, [ebp - 0x44]
push 0
cmovae edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae ecx, dword [ebp - 0x2c]
push ecx
push 0
push ecx
push 0
push 0
push ecx
call fcn.00416a40
test eax, eax
je 0x41276b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x412764
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41275a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412802
push edx
push ecx
call fcn.0044b3bd
add esp, 8
mov esi, 1
jmp 0x4127a3
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x4127a1
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412797
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412802
push edx
push ecx
call fcn.0044b3bd
add esp, 8
xor esi, esi
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4127d9
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4127cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412807
push edx
push ecx
call fcn.0044b3bd
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044ae26
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00401570
call fcn.0047aa50
call fcn.0047aa50
call fcn.0047aa50
int3