Function at 0x419d10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1180
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4d61d4]
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 ebx, dword [ebp + 8]
test ebx, ebx
jne 0x419d4a
lea eax, [ebx + 6]
jmp 0x41a013
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00412c90
mov dword [ebp - 4], 0
xor esi, esi
mov edi, dword [ebp - 0x2c]
movzx eax, word [edi]
test ax, ax
je 0x419dde
mov ecx, eax
nop dword [eax]
push ecx
call fcn.0046fa89
add esp, 4
test eax, eax
je 0x419d88
test esi, esi
mov eax, edi
cmovne eax, esi
mov esi, eax
jmp 0x419d8a
xor esi, esi
movzx eax, word [edi + 2]
add edi, 2
mov ecx, eax
test ax, ax
jne 0x419d70
test esi, esi
je 0x419ddb
mov eax, dword [ebp - 0x2c]
sub esi, eax
sar esi, 1
js 0x41a02f
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x419dc6
push esi
lea ecx, [ebp - 0x2c]
call fcn.00406c60
mov eax, dword [ebp - 0x2c]
cmp esi, dword [eax - 8]
jg 0x41a02f
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x2c]
mov word [eax + esi*2], cx
mov edi, dword [ebp - 0x2c]
movzx eax, word [edi]
push eax
call fcn.0046fa89
add esp, 4
test eax, eax
je 0x419e04
nop
movzx eax, word [edi + 2]
add edi, 2
push eax
call fcn.0046fa89
add esp, 4
test eax, eax
jne 0x419df0
mov eax, dword [ebp - 0x2c]
cmp edi, eax
je 0x419e84
mov edx, dword [eax - 0xc]
sub edi, eax
sar edi, 1
test edx, edx
js 0x41a039
mov ecx, dword [eax - 8]
mov esi, 1
sub esi, dword [eax - 4]
sub ecx, edx
or ecx, esi
jge 0x419e37
push edx
lea ecx, [ebp - 0x2c]
call fcn.00406c60
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax - 0xc]
lea esi, [eax + edi*2]
mov ecx, edx
sub ecx, edi
mov dword [ebp - 0x30], ecx
lea ecx, [ecx*2 + 2]
push ecx
push esi
lea ecx, [edx*2 + 2]
push ecx
push eax
call fcn.0040bf70
mov ecx, dword [ebp - 0x30]
add esp, 0x10
test ecx, ecx
js 0x41a02f
mov eax, dword [ebp - 0x2c]
cmp ecx, dword [eax - 8]
jg 0x41a02f
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x2c]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x2c]
cmp dword [eax - 0xc], 0
jne 0x419e94
mov esi, 3
jmp 0x419fef
lea edx, [ebx + 2]
mov cx, word [ebx]
add ebx, 2
test cx, cx
jne 0x419e97
sub ebx, edx
sar ebx, 1
cmp ebx, 0x102
jbe 0x419eb8
mov esi, 8
jmp 0x419fef
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x419ecd
mov esi, 5
jmp 0x419fef
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x419ef1
push dword [ebp - 0x2c]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x419ef1
lea esi, [eax + 4]
jmp 0x419fef
lea eax, [ebp - 0x2c]
push eax
call fcn.0041a050
add esp, 4
test eax, eax
je 0x419f0b
mov esi, 6
jmp 0x419fef
mov eax, dword [ebp - 0x2c]
cmp dword [eax - 0xc], 0
jl 0x41a043
movzx eax, word [eax]
push eax
call fcn.00426360
shrd eax, edx, 0x14
add esp, 4
shr edx, 0x14
test edx, edx
ja 0x419f42
jb 0x419f38
cmp eax, 0x12c
jae 0x419f42
mov esi, 1
jmp 0x419fef
push dword [ebp - 0x2c]
call esi
test eax, eax
jne 0x419fb9
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push 0
push 0
mov ecx, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
call fcn.0041b5f0
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x30]
push eax
push ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x3c], esp
mov ecx, esp
push eax
call fcn.004194d0
mov byte [ebp - 4], 5
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.004264e0
test eax, eax
jne 0x419fad
mov byte [ebp - 4], al
lea ecx, [ebp - 0x38]
call fcn.00425d60
mov esi, 9
jmp 0x419fef
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00425d60
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
call fcn.0040c890
mov byte [ebp - 4], 6
lea eax, [ebp - 0x28]
push eax
call fcn.00426b60
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00404220
test esi, esi
jne 0x419fed
mov esi, 2
jmp 0x419fef
xor esi, esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edi, dword [ebp - 0x2c]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41a011
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
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.0043a373
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00405790
push 0x80070057
call fcn.00405790
push 0x80070057
call fcn.00405790
int3