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

Disassembly:
push 0xffffffffffffffff
push 0x43bb47
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x44a120]
xor eax, esp
mov dword [esp + 0x254], eax
push ebx
push esi
push edi
mov eax, dword [0x44a120]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
je 0x416114
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416114
push 0x208
lea eax, [esp + 0x5a]
push ebx
push eax
mov word [esp + 0x60], bx
call fcn.00420090
add esp, 0xc
push 0x104
lea ecx, [esp + 0x58]
push esi
push ecx
call fcn.0041f3cd
add esp, 0xc
test eax, eax
jne 0x415f6d
mov edx, esi
lea eax, [esp + 0x38]
call fcn.00407680
mov dword [esp + 0x270], ebx
mov eax, dword [0x44d034]
mov ecx, dword [eax + 4]
lea edi, [eax + 4]
lea edx, [esp + 0x38]
push edx
push ecx
push eax
call fcn.00414ab0
mov ecx, 0x44d030
mov esi, eax
call fcn.00414b50
mov dword [edi], esi
mov edx, dword [esi + 4]
mov dword [edx], esi
cmp dword [esp + 0x50], 8
jb 0x416114
mov eax, dword [esp + 0x3c]
push eax
call fcn.0041c4fe
add esp, 4
jmp 0x416114
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
je 0x415fb3
lea edx, [esp + 0x54]
lea eax, [esp + 0x38]
call fcn.00407680
lea eax, [esp + 0x38]
mov ebx, 0x44d030
mov dword [esp + 0x270], 1
call fcn.00414a60
lea esi, [esp + 0x38]
call fcn.004052b0
jmp 0x416114
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x58]
call fcn.00401b70
lea edi, [esp + 0x14]
mov dword [esp + 0x270], 2
call fcn.0040bc00
xor esi, esi
jmp 0x415fe0
mov ecx, dword [esi + 0x44b5e4]
lea eax, [esp + 0x18]
push eax
call fcn.00401b70
lea edi, [esp + 0x18]
mov byte [esp + 0x270], 3
call fcn.0040bc00
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x416032
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], ebx
jl 0x416032
push eax
push ecx
call fcn.0041d5ad
add esp, 8
cmp eax, ebx
je 0x41602e
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, ebx
jg 0x41613d
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x270], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416056
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, 0xc
jb 0x415fe0
lea eax, [esp + 0x54]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416076
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x58]
push ecx
lea esi, [esp + 0x24]
call fcn.00408070
mov byte [esp + 0x270], 4
mov eax, dword [0x44d034]
mov ecx, dword [eax + 4]
lea edi, [eax + 4]
mov edx, esi
push edx
push ecx
push eax
call fcn.00414ab0
mov ecx, 0x44d030
mov esi, eax
call fcn.00414b50
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
cmp dword [esp + 0x34], 8
jb 0x4160d8
mov edx, dword [esp + 0x20]
push edx
call fcn.0041c4fe
add esp, 4
mov dword [esp + 0x270], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416114
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.0041cb94
add esp, 0x264
ret
mov byte [esp + 0x270], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416165
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x270], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416190
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x416116