Function at 0x43dbd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7f38
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x65b500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x1c]
call fcn.00418aa0
mov esi, dword [ebp - 0x1c]
mov edi, 1
mov ecx, edi
mov byte [ebp - 4], 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x43dc38
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.00407430
mov esi, dword [ebp - 0x1c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi - 8]
push esi
call fcn.005cbb65
add esp, 8
test eax, eax
js 0x43de51
cmp eax, dword [esi - 8]
jg 0x43de51
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push dword [ebp + 0xc]
test eax, eax
jne 0x43dcd7
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebx, dword [ebp + 8]
mov ecx, ebx
push eax
call fcn.00406060
or edi, 0xffffffff
mov eax, edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x43dca4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x43dcc3
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x18]
call fcn.00406060
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x10]
call fcn.00406060
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 3
mov ecx, dword [eax - 8]
sub edi, dword [eax - 4]
sub ecx, 0x104
or ecx, edi
jge 0x43dd23
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00407430
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.005cbb65
mov edx, eax
add esp, 8
test edx, edx
js 0x43de51
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x43de51
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
call fcn.00406890
mov ecx, eax
test ecx, ecx
je 0x43de5b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push dword [ebp - 0x18]
mov ebx, 2
mov byte [ebp - 4], 4
push ebx
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push esi
push str._s_s__d__s
push eax
call fcn.00407c80
mov edi, dword [ebp - 0x14]
add esp, 0x18
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43ddd6
inc ebx
cmp ebx, 0x64
jg 0x43de4c
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push ebx
push dword [ebp - 0x10]
push esi
push str._s_s__d__s
push eax
call fcn.00407c80
mov edi, dword [ebp - 0x14]
add esp, 0x18
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43dda5
push edi
mov eax, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
call eax
mov ebx, dword [ebp + 8]
mov ecx, ebx
push eax
call fcn.00406060
lea edx, [edi - 0x10]
mov byte [ebp - 4], 3
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43de07
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov eax, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43de25
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov eax, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43dc89
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x43dc89
push dword [ebp + 0xc]
jmp 0x43ddd7
push 0x80070057
call fcn.004064e0
push 0x80004005
call fcn.004064e0
int3