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

Disassembly:
push 0xffffffffffffffff
push 0x45c290
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x472940]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
call fcn.004368a6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401c11
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0
call fcn.004013b0
mov ebx, 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], bl
call fcn.00401b20
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
mov byte [esp + 0x17], 0
mov byte [esp + 0x16], bl
test eax, eax
jl 0x401ce2
push 0x467c44
push ecx
call fcn.0044390e
mov ecx, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x401ce2
sub eax, ecx
cmp eax, 0xffffffff
je 0x401ce2
lea esi, [eax + 2]
push esi
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
call fcn.004023e0
mov byte [esp + 0x30], 2
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00402520
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401cc9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
call fcn.00402300
mov byte [esp + 0x30], 3
jmp 0x401d70
cmp dword [ecx - 0xc], 0
jl 0x401da2
push 0x467c48
push ecx
call fcn.0044390e
mov ecx, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x401da2
sub eax, ecx
cmp eax, 0xffffffff
je 0x401da2
lea esi, [eax + 2]
push esi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
call fcn.004023e0
mov byte [esp + 0x30], 4
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00402520
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401d5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
call fcn.00402300
mov byte [esp + 0x30], 5
push eax
lea ecx, [esp + 0x1c]
call fcn.004027a0
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401d9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
jmp 0x401db0
cmp byte [esp + 0x16], 0
je 0x401efc
cmp dword [ecx - 0xc], ebx
jle 0x401ddd
inc ecx
push 0x5c
push ecx
call fcn.004439e1
mov ecx, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x401ddd
sub eax, ecx
mov esi, eax
cmp esi, 0xffffffff
jne 0x401df4
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x1f], bl
call fcn.00402520
jmp 0x401ecb
push esi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
call fcn.004023e0
mov byte [esp + 0x30], 6
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00402520
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401e3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x20]
call fcn.00402300
mov byte [esp + 0x30], 7
mov ecx, dword [eax]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x401ea7
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x401e99
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x401e99
push eax
call fcn.00401850
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x401e90
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x18], ebp
jmp 0x401ea7
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00401760
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401ecb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401eed
push esi
call fcn.004435f7
add esp, 4
test eax, eax
je 0x401eed
mov byte [esp + 0x16], 0
cmp byte [esp + 0x17], 0
mov ecx, dword [esp + 0x18]
je 0x401db0
lea eax, [ecx - 0x10]
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401f1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401f41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [esp + 0x16]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret