Function at 0x417f30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462e42
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x4776f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
call fcn.004183c0
lea ecx, [ebp - 0x24]
push 0x47b454
push ecx
lea ebx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.00405410
mov byte [ebp - 4], 3
xor edi, edi
push 0xc
mov dword [ebp - 0x34], edi
call fcn.0042aebd
add esp, 0xc
cmp eax, edi
je 0x4182f4
mov dword [eax], eax
mov dword [ebp - 0x38], eax
mov dword [eax + 4], eax
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.00417060
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
lea esi, [ebp - 0x38]
mov dword [ebp - 0x28], esp
mov edi, esp
call fcn.00413290
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.00417c70
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x4180d5
mov byte [ebp - 4], 3
mov esi, dword [ebx]
mov dword [ebx], ebx
mov dword [ebx + 4], ebx
cmp esi, ebx
je 0x418024
mov eax, dword [esi + 8]
mov edi, dword [esi]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418015
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call fcn.0042ab24
add esp, 4
mov esi, edi
cmp edi, ebx
jne 0x417ff4
push ebx
call fcn.0042ab24
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418050
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp + 8]
lea esi, [ebp - 0x54]
call fcn.00418e90
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.0042ab24
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418095
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4180bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x14]
mov edi, dword [eax + 8]
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi - 4], 0
lea ecx, [edi - 4]
jl 0x4180fe
cmp eax, dword [edi - 0x10]
jne 0x4180fe
lea esi, [edi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x418136
mov ecx, dword [edi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x4182e5
mov eax, dword [edi - 0xc]
mov dword [esi + 4], eax
mov eax, dword [edi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [esi + 0x10]
push eax
call fcn.0042af5b
add esp, 0x10
add esi, 0x10
mov dword [ebp - 0x18], esi
push esi
mov byte [ebp - 4], 5
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4182ad
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x418176
cmp eax, dword [esi]
jne 0x418176
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4181b1
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x4182e5
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0042af5b
add esp, 0x10
add edi, 0x10
mov dword [ebp - 0x10], edi
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.00416150
mov ecx, edi
lea eax, [ebp - 0x54]
call fcn.00418fc0
mov ebx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x418229
mov eax, dword [eax + 0xc]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4182ea
mov ecx, eax
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x418216
test dx, dx
je 0x418212
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x418216
add eax, 4
add ecx, 4
test dx, dx
jne 0x4181f0
xor eax, eax
jmp 0x41821b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sets al
test al, al
jne 0x418229
lea eax, [ebp - 0x1c]
jmp 0x41822f
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 5
cmp dword [eax], ebx
lea eax, [edi - 0x10]
je 0x418255
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4182aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4182aa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41826e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ecx
test al, 0x10
mov dword [ebp - 0x1c], esp
mov edi, esp
mov eax, esi
je 0x418298
call fcn.00413290
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
call fcn.00418560
jmp 0x4182aa
call fcn.00413290
add eax, 0x10
mov dword [edi], eax
call fcn.00416370
add esp, 4
mov ebx, dword [ebp - 0x38]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4182d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x4180d2
jmp 0x417fe5
call fcn.00413640
push 0x80004005
call fcn.004136e0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x2c], edi
call fcn.0042ac47
push 0x4708fc
lea edx, [ebp - 0x44]
push edx
mov dword [ebp - 0x44], vtable.std::bad_alloc.0
call fcn.0042f26b
int3