Function at 0x41df40
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4a0350
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c86e0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x30], 1
call fcn.00461729
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41df89
push 0x80004005
call fcn.00401fb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x30], 2
mov ebp, dword [esp + 0x40]
add ebp, 0xfffffff0
push ebp
mov dword [esp + 0x18], 0xffffffff
call fcn.00402840
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
push 0x2e
push esi
mov byte [esp + 0x3c], 3
call fcn.0047f55a
add esp, 0xc
test eax, eax
je 0x41e017
sub eax, esi
test eax, eax
jle 0x41e017
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
call fcn.0040fc90
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 4
call fcn.004027c0
mov byte [esp + 0x30], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41e017
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x44]
mov esi, dword [ebx]
add dword [esp + 0x14], 1
sub esi, 0x10
cmp ebp, esi
je 0x41e077
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x41e067
mov ecx, dword [ebp]
cmp ecx, dword [esi]
jne 0x41e067
push ebp
call fcn.00402840
add esp, 4
mov dword [esp + 0x20], eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x41e05c
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x20]
add eax, 0x10
mov dword [ebx], eax
jmp 0x41e077
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, ebx
call fcn.00401c60
cmp dword [esp + 0x14], 0
jle 0x41e138
push ecx
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x24], esp
mov edi, esp
call eax
cmp dword [ebp + 0xc], 0
lea ecx, [ebp + 0xc]
jl 0x41e0ae
cmp eax, dword [ebp]
jne 0x41e0ae
mov esi, ebp
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x41e0e4
mov ecx, dword [ebp + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x41e285
mov eax, dword [ebp + 4]
mov dword [esi + 4], eax
mov eax, dword [ebp + 4]
add eax, 1
push eax
lea ecx, [ebp + 0x10]
push ecx
push eax
lea edx, [esi + 0x10]
push edx
call fcn.0047e048
add esp, 0x10
lea eax, [esp + 0x28]
add esi, 0x10
push eax
mov dword [edi], esi
call fcn.004038a0
mov edx, dword [esp + 0x1c]
mov byte [esp + 0x38], 5
mov ecx, dword [eax]
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
push str._s__d_._s
push ebx
call fcn.00402a20
mov byte [esp + 0x4c], 3
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 0x1c
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e138
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx]
mov edx, dword [esp + 0x3c]
push ecx
push edx
lea eax, [esp + 0x24]
push 0x4ae8e0
push eax
call fcn.00402a20
mov esi, dword [esp + 0x2c]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
add esp, 0xc
mov dword [esp + 0x24], esp
mov ebx, esp
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x41e183
cmp eax, dword [esi]
jne 0x41e183
mov edi, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x41e1b9
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x41e285
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0047e048
add esp, 0x10
mov ecx, dword [esp + 0x3c]
add edi, 0x10
mov dword [ebx], edi
call fcn.0041e290
test eax, eax
jne 0x41e017
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x41e017
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41e207
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e228
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e24d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e26f
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x10
call fcn.00401950
int3