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

Disassembly:
push 0xffffffffffffffff
push 0x475568
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48a2c4]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor ebp, ebp
cmp dword [esp + 0x54], ebp
jne 0x43f486
xor eax, eax
jmp 0x43f726
mov esi, dword [esp + 0x50]
cmp esi, ebp
je 0x43f47f
push 1
call fcn.0043f430
mov ebx, eax
mov dword [esp + 0x28], ebx
cmp ebx, ebp
je 0x43f47f
push esi
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43f4bb
test al, 0x10
je 0x43f4bb
mov dword [esp + 0x20], 1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
mov dword [esp + 0x2c], eax
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], ebp
je 0x43f721
xor edi, edi
push ebp
mov ecx, ebx
mov dword [esp + 0x1c], edi
call fcn.00437c30
mov ecx, dword [eax + 0x18]
sub ecx, dword [eax + 0x14]
add eax, 8
sar ecx, 2
test ecx, ecx
jbe 0x43f6fd
jmp 0x43f514
mov edi, dword [esp + 0x18]
push ebp
mov ecx, ebx
call fcn.00437c30
mov esi, eax
mov edx, dword [esi + 0x18]
sub edx, dword [esi + 0x14]
add esi, 8
sar edx, 2
cmp edi, edx
jb 0x43f533
call fcn.00448cbe
mov eax, dword [esi + 0xc]
lea eax, [eax + edi*4]
mov edi, dword [eax]
cmp dword [edi - 0xc], 0
jl 0x43f556
mov esi, edi
lea ecx, [esi - 0xc]
push ecx
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x43f5e8
mov esi, dword [0x488014]
mov dword [esp + 0x14], esi
test edi, edi
jne 0x43f568
xor ebp, ebp
jmp 0x43f571
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
cmp dword [esi - 0xc], 1
lea eax, [esi - 0xc]
mov dword [esp + 0x24], eax
jg 0x43f583
cmp ebp, dword [esi - 4]
jle 0x43f5c1
add esi, 0xfffffff4
cmp esi, dword [0x488010]
je 0x43f5af
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43f5a6
mov edx, dword [esp + 0x24]
push edx
call fcn.00448106
add esp, 4
mov eax, dword [0x488014]
mov dword [esp + 0x14], eax
push ebp
lea ecx, [esp + 0x18]
call fcn.00412460
mov esi, dword [esp + 0x14]
test eax, eax
je 0x43f5e4
lea ebx, [ebp + ebp]
lea ecx, [ebx + 2]
cmp ecx, ebx
jb 0x43f5d7
push ebx
push edi
push esi
call fcn.004482d0
add esp, 0xc
xor edx, edx
mov dword [esi - 8], ebp
mov word [ebx + esi], dx
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
cmp dword [esp + 0x20], 0
mov dword [esp + 0x48], 0
je 0x43f647
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x50]
push eax
push ecx
push esi
call fcn.00448dc3
add esp, 0xc
test eax, eax
jne 0x43f657
push ebp
mov ecx, ebx
call fcn.00437c30
mov edx, dword [eax]
push ebp
mov ecx, ebx
mov dword [esp + 0x38], edx
call fcn.00437c30
mov eax, dword [eax + 0x20]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x34], eax
call fcn.00438c70
lea edx, [esi - 0xc]
cmp edx, dword [0x488010]
jmp 0x43f6dc
mov edx, dword [esp + 0x50]
push edx
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x43f6a8
lea eax, [esi - 0xc]
mov dword [esp + 0x48], 0xffffffff
cmp eax, dword [0x488010]
je 0x43f681
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43f681
push esi
call fcn.00448106
add esp, 4
mov esi, dword [esp + 0x18]
inc esi
push ebp
mov ecx, ebx
mov dword [esp + 0x1c], esi
call fcn.00437c30
mov ecx, dword [eax + 0x18]
sub ecx, dword [eax + 0x14]
add eax, 8
sar ecx, 2
cmp esi, ecx
jb 0x43f510
jmp 0x43f6fd
push ebp
mov ecx, ebx
call fcn.00437c30
mov eax, dword [eax]
push ebp
mov ecx, ebx
mov dword [esp + 0x40], eax
call fcn.00437c30
mov ecx, dword [eax + 0x20]
lea edx, [esp + 0x38]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x54]
push edx
call fcn.00438c70
lea eax, [esi - 0xc]
cmp eax, dword [0x488010]
mov dword [esp + 0x48], 0xffffffff
je 0x43f6fd
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43f6fd
push esi
call fcn.00448106
add esp, 4
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
mov eax, 0x66666667
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
inc ebp
add ecx, edx
mov dword [esp + 0x1c], ebp
cmp ebp, ecx
jb 0x43f4e7
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 8