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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4933e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x4c51d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test byte [0x4d0034], 1
mov ebx, 0x4a8614
jne 0x437e0c
or dword [0x4d0034], 1
mov dword [ebp - 4], 0
call fcn.004156f0
push 0x49c6e0
call fcn.0046e898
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x4d0058]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
call fcn.004015d0
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov eax, 1
mov dword [ebp - 4], eax
test byte [0x4d0034], al
jne 0x437e58
or dword [0x4d0034], eax
mov byte [ebp - 4], 2
call fcn.004156f0
push 0x49c6e0
call fcn.0046e898
add esp, 4
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
or esi, 0xffffffff
push eax
mov dword [ebp - 4], esi
call fcn.00415a80
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 4], 3
call fcn.00406750
add esp, 8
mov ebx, dword [ebp + 8]
push eax
push ebx
mov byte [ebp - 4], 4
call fcn.00438c70
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x437eab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x437eca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
lea ecx, [ebp - 0x2c]
push ecx
mov ebx, 0x4a56e4
call fcn.00406750
add esp, 8
mov esi, eax
mov ebx, 5
mov eax, 1
mov dword [ebp - 4], ebx
test byte [0x4d0034], al
jne 0x437f12
or dword [0x4d0034], eax
mov byte [ebp - 4], 6
call fcn.004156f0
push 0x49c6e0
call fcn.0046e898
add esp, 4
mov byte [ebp - 4], bl
lea edx, [ebp - 0x28]
push 0x4d0058
push edx
mov ebx, esi
call fcn.004078b0
push eax
lea eax, [ebp - 0x10]
push eax
mov ebx, 0x4a8614
mov byte [ebp - 4], 7
call fcn.00406750
add esp, 0x10
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x437f5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x437f7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x437f91
test al, 0x10
je 0x437fb0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4381c0
lea esi, [edi + 4]
lea ecx, [ebp - 0x18]
push esi
push ecx
mov ebx, 0x4a8664
call fcn.00406750
add esp, 8
push 0x4a8620
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.00401c40
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xc
call fcn.004389b0
lea ecx, [ebp - 0x14]
push 0x4a8680
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.0040cfe0
add esp, 8
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x438020
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438043
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4a59e4
lea ecx, [ebp - 0x24]
call fcn.00401c40
push 0x4a59e4
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x11
call fcn.00401c40
mov bl, 0x12
mov byte [ebp - 4], bl
test byte [0x4d0034], 1
jne 0x43808f
or dword [0x4d0034], 1
mov byte [ebp - 4], 0x13
call fcn.004156f0
push 0x49c6e0
call fcn.0046e898
add esp, 4
mov byte [ebp - 4], bl
mov edx, dword [edi]
mov edx, dword [edx]
push 1
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
push 0
push esi
push 0x4d0058
push ecx
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call edx
test eax, eax
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x20]
sete bl
add eax, 0xfffffff0
or esi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4380df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438101
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov edx, esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test bl, bl
je 0x43817d
test edx, edx
jg 0x438127
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438149
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x438168
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test edx, edx
jg 0x43818b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4381ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x4381cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4