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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54dd08
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5a68a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
lea eax, [ebp + 8]
lea esi, [edi + 8]
push eax
mov ecx, esi
mov dword [ebp - 4], 1
mov byte [ebp - 0x11], 0
call fcn.0040a4c0
lea edx, [ebp + 0xc]
lea ecx, [edi + 0x14]
push edx
call fcn.0040a4c0
push esi
mov ecx, edi
call fcn.0040a4c0
push 0x57da3c
push 0x57da34
mov ecx, edi
call fcn.00404bf0
mov byte [ebp - 4], 2
mov eax, dword [esi]
push ecx
sub eax, 0x10
mov dword [ebp - 0x28], esp
mov ebx, esp
push eax
call fcn.0040a450
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x24]
add esp, 4
push eax
call fcn.004011d0
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [esi]
push ecx
sub eax, 0x10
mov dword [ebp - 0x28], esp
mov ebx, esp
push eax
call fcn.0040a450
lea ecx, [ebp - 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [ebx], eax
call fcn.00401270
add esp, 8
lea edx, [ebp - 0x18]
push edx
mov byte [ebp - 4], 4
call fcn.00401120
add esp, 4
mov byte [ebp - 4], 5
mov esi, dword [esi]
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [ebp - 0x18]
call fcn.0040a2f0
lea esi, [ebp - 0x18]
call fcn.00403ea0
mov eax, dword [ebp - 0x24]
cmp dword [eax - 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
je 0x4187d8
push eax
call esi
cmp eax, 0xffffffff
je 0x4187d8
test al, 0x10
jne 0x4187d8
mov eax, dword [ebp - 0x24]
jmp 0x4187f0
mov eax, dword [ebp - 0x20]
cmp dword [eax - 0xc], 0
je 0x41880f
push eax
call esi
cmp eax, 0xffffffff
je 0x41880f
test al, 0x10
jne 0x41880f
mov eax, dword [ebp - 0x20]
push ecx
add eax, 0xfffffff0
mov esi, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.0040a450
add esp, 4
add eax, 0x10
push edi
mov dword [esi], eax
call fcn.00418da0
jmp 0x418844
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x418844
push eax
call esi
cmp eax, 0xffffffff
je 0x418844
test al, 0x10
je 0x418844
mov eax, dword [ebp - 0x18]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov esi, esp
push eax
call fcn.0040a450
add esp, 4
add eax, 0x10
push edi
mov dword [esi], eax
call fcn.00419880
mov eax, dword [edi + 0x28]
sub eax, dword [edi + 0x24]
sar eax, 2
test eax, eax
jbe 0x4189a9
mov ecx, dword [edi + 0x28]
sub ecx, dword [edi + 0x24]
sar ecx, 2
cmp ecx, 6
ja 0x4189a9
mov eax, edi
call fcn.00418d60
lea esi, [ebp - 0x28]
mov eax, edi
mov byte [ebp - 0x11], 1
call fcn.00418b30
mov edx, dword [eax]
push edx
push str._____S__r_n
mov eax, 0x5af198
call fcn.00416a20
mov bl, al
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4188b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4189a9
push 0x57e170
lea ecx, [ebp - 0x1c]
call fcn.0040ab30
mov byte [ebp - 4], 6
xor esi, esi
lea ecx, [ecx]
mov ecx, dword [edi + 0x28]
sub ecx, dword [edi + 0x24]
sar ecx, 2
cmp esi, ecx
jae 0x418970
call fcn.0041f7c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4188fb
push 0x80004005
call fcn.0040a9a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 7
mov ecx, dword [edi + 0x28]
sub ecx, dword [edi + 0x24]
sar ecx, 2
cmp esi, ecx
jb 0x418920
call fcn.0051dd07
mov edx, dword [edi + 0x24]
mov eax, dword [edx + esi*4]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push 0x57fe4c
push eax
call fcn.0040a270
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx - 0xc]
add esp, 0xc
push eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0040a2f0
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41896a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc esi
jmp 0x4188d0
mov ecx, dword [ebp - 0x1c]
push ecx
push str._____S_r_n
mov eax, 0x5af198
call fcn.00416a20
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4189a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4189cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4189ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418a12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 1
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418a3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418a62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8