Function at 0x421350
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db627
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x510918]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, 0x4f4b94
cmp edx, 1
mov edi, str.elements64.exe
cmovne edi, eax
xor eax, eax
mov dword [ebp - 0xec], 0
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
cmp word [edi], ax
jne 0x4213b6
xor ecx, ecx
jmp 0x4213cf
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x4213c0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4213c0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x70]
call fcn.00402f90
lea ecx, [ebp - 0xd0]
mov dword [ebp - 4], 0
call fcn.00421210
xor ecx, ecx
push 0xffffffffffffffff
mov byte [ebp - 4], 1
push ecx
mov word [ebp - 0x40], cx
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
call fcn.00402c10
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0042ee5c
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0042f02a
cmp dword [ebp - 0x74], 8
jb 0x421449
push dword [ebp - 0x88]
call fcn.004a295f
add esp, 4
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
cmp dword [ebp - 0x2c], 8
jb 0x421471
push dword [ebp - 0x40]
call fcn.004a295f
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp dword [ebp - 0xbc], 8
jb 0x42149c
push dword [ebp - 0xd0]
call fcn.004a295f
add esp, 4
xor eax, eax
mov dword [ebp - 0xbc], 7
mov dword [ebp - 0xc0], 0
mov word [ebp - 0xd0], ax
mov byte [ebp - 4], 8
cmp dword [ebp - 0x5c], 8
jb 0x4214ce
push dword [ebp - 0x70]
call fcn.004a295f
add esp, 4
xor eax, eax
cmp dword [ebp - 0x14], 8
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x421508
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.004020d0
jmp 0x4216b8
push edi
lea ecx, [ebp - 0x104]
call fcn.00403110
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 9
call fcn.00421160
xor ecx, ecx
push 0xffffffffffffffff
mov byte [ebp - 4], 0xa
push ecx
mov word [ebp - 0x58], cx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
call fcn.00402c10
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xb
call fcn.0042ee5c
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.0042f02a
mov edi, eax
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x4215aa
cmp dword [ebp - 0x14], 8
jb 0x42158d
push dword [ebp - 0x28]
call fcn.004a295f
add esp, 4
xor eax, eax
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00402070
cmp dword [ebp - 0x8c], 8
jb 0x4215c1
push dword [ebp - 0xa0]
call fcn.004a295f
add esp, 4
xor eax, eax
cmp dword [ebp - 0xa4], 8
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
jb 0x4215f5
push dword [ebp - 0xb8]
call fcn.004a295f
add esp, 4
xor eax, eax
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0xa4], 7
mov dword [ebp - 0xa8], 0
mov word [ebp - 0xb8], ax
jb 0x421623
push dword [ebp - 0x58]
call fcn.004a295f
add esp, 4
xor eax, eax
cmp dword [ebp - 0xd4], 8
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jb 0x42164e
push dword [ebp - 0xe8]
call fcn.004a295f
add esp, 4
xor eax, eax
cmp dword [ebp - 0xf0], 8
mov dword [ebp - 0xd4], 7
mov dword [ebp - 0xd8], 0
mov word [ebp - 0xe8], ax
jb 0x421682
push dword [ebp - 0x104]
call fcn.004a295f
add esp, 4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4216a5
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.004020d0
jmp 0x4216b8
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x14], 8
jb 0x4216c9
push dword [ebp - 0x28]
call fcn.004a295f
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a2964
mov esp, ebp
pop ebp
ret