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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x579318
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x4c], 0
je 0x443a0b
mov ebx, edi
call fcn.00443850
lea eax, [edi + 0x14]
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
mov dword [esp + 0x40], esi
mov ecx, dword [edi + 0x2c]
cmp ecx, esi
je 0x443a2c
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
mov ebx, dword [edi + 0x38]
cmp ebx, esi
lea eax, [edi + 0x38]
mov dword [edi + 0x3c], esi
mov dword [esp + 0x10], eax
je 0x443a75
cmp dword [ebx], 2
je 0x443a4e
mov dword [0x5dfdd4], 0x80000
jmp 0x443a71
mov esi, dword [ebx + 4]
call fcn.00449620
test esi, esi
mov dword [0x5dfdd4], eax
je 0x443a64
call fcn.0044a330
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x14]
add esp, 4
xor esi, esi
mov dword [eax], esi
mov eax, dword [0x5dcd6c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5dcd6c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x40], 1
mov eax, dword [edi + 4]
mov ebx, dword [eax]
mov dword [esp + 0x1c], esi
mov esi, edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], esi
test esi, esi
mov eax, dword [edi + 4]
mov dword [esp + 0x30], eax
je 0x443ab2
cmp esi, edi
je 0x443ab8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esp + 0x30]
je 0x443bf1
test esi, esi
jne 0x443acc
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esi + 4]
jne 0x443ad7
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [ebx + 0xc]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x443b01
cmp eax, dword [esi]
jne 0x443b01
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x443b3d
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x443bbf
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call dword [sym.imp.MSVCR80.dll_memcpy_s]
add esp, 0x10
lea esi, [ebx + 0x10]
mov dword [esp + 0x18], esi
mov byte [esp + 0x40], 2
cmp dword [edi + 0x34], 0
jne 0x443bc4
mov eax, dword [esp + 0x10]
cmp dword [eax], 0
jne 0x443b6d
push eax
lea ebx, [esp + 0x18]
call fcn.004441e0
test eax, eax
mov dword [edi + 0x3c], eax
jne 0x443bcb
mov eax, dword [esp + 0x10]
push eax
push edi
lea esi, [esp + 0x20]
call fcn.00443d20
or edx, 0xffffffff
mov dword [edi + 0x3c], eax
mov byte [esp + 0x40], 1
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x443bd8
add dword [esp + 0x1c], 1
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443ba9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x24]
call fcn.00444f60
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
jmp 0x443aa3
jmp fcn.00401f10
mov dword [edi + 0x3c], 5
mov byte [esp + 0x40], 1
lea eax, [esi - 0x10]
or edx, 0xffffffff
jmp 0x443bdb
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443bf1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x1c], 0
jg 0x443c05
cmp dword [edi + 0x3c], 0
jne 0x443c05
mov dword [edi + 0x3c], 3
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx]
test ebx, ebx
je 0x443c49
cmp dword [ebx], 2
je 0x443c20
mov dword [0x5dfdd4], 0x80000
jmp 0x443c3f
mov esi, dword [ebx + 4]
call fcn.00449620
test esi, esi
mov dword [0x5dfdd4], eax
je 0x443c36
call fcn.0044a330
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [esp + 0x10]
mov dword [edx], 0
cmp dword [edi + 0x3c], 0
jne 0x443c62
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.00444660
test eax, eax
mov dword [edi + 0x3c], eax
je 0x443ca6
mov eax, dword [edi + 0x10]
cmp dword [eax - 0xc], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea esi, [edi + 0x10]
je 0x443c87
push eax
call ebx
cmp eax, 0xffffffff
je 0x443c87
test al, 0x10
jne 0x443c87
mov ecx, esi
call fcn.0044a3c0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
je 0x443ca6
push eax
call ebx
cmp eax, 0xffffffff
je 0x443ca6
test al, 0x10
jne 0x443ca6
lea ecx, [esp + 0x14]
call fcn.0044a3c0
mov ecx, dword [edi + 0x2c]
test ecx, ecx
je 0x443cbc
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [edi + 0x10]
push eax
mov eax, dword [edi + 0x3c]
push eax
call edx
mov edi, dword [edi + 0x3c]
mov byte [esp + 0x40], 0
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 0x443ce4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret