Function at 0x43d770
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x467660
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4814f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x484394]
mov edx, dword [eax + 0xc]
mov ecx, 0x484394
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x209
or eax, ecx
mov dword [ebp - 4], 0
jge 0x43d7dd
push 0x209
lea ecx, [ebp - 0x10]
call fcn.0040f3c0
mov esi, dword [ebp - 0x10]
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00449ab1
add esp, 8
test eax, eax
jl 0x43d9f0
cmp eax, dword [esi - 8]
jg 0x43d9f0
push esi
xor ecx, ecx
mov dword [esi - 0xc], eax
push 0x470bfc
mov word [esi + eax*2], cx
call dword [sym.imp.SHLWAPI.dll_PathIsPrefixW]
test eax, eax
je 0x43d8a0
push 0xe
push 0
lea ecx, [ebp - 0x10]
call fcn.0043a770
lea edx, [ebp - 0x1c]
push edx
call fcn.00419450
lea ecx, [ebp - 0x10]
push ecx
push eax
lea edx, [ebp - 0x18]
push edx
mov byte [ebp - 4], 1
call fcn.0041c470
add esp, 0x10
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040f840
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43d87a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43d89d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x10]
lea edi, [esi - 0x10]
push edi
call fcn.0040f2a0
lea esi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x14], esi
cmp dword [esi - 4], 1
mov byte [ebp - 4], 3
jle 0x43d8cb
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040f210
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov ebx, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00449ab1
add esp, 8
test eax, eax
jl 0x43d9f0
cmp eax, dword [esi - 8]
jg 0x43d9f0
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
test ebx, ebx
je 0x43d935
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43d935
lea eax, [ebp - 0x20]
push eax
push ecx
mov dword [ebp - 0x24], esp
mov ebx, esp
push edi
mov dword [ebp - 0x20], 0
call fcn.0040f2a0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.0043ce30
add esp, 8
test eax, eax
jne 0x43d98b
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43d955
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43d975
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0040f840
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43d9b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43d9d7
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00403dd0
int3