Function at 0x10102be0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
call fcn.101033f0
test eax, eax
je 0x10102c15
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.10009c50
mov esi, dword [ebp + 8]
mov dword [ebp - 0x870], eax
test esi, esi
je 0x101033d3
cmp dword [ebx + 0xc0], 0
je 0x101033d3
mov eax, dword [ebx]
lea ecx, [esi + 0x74]
mov dword [ebp - 0x86c], ecx
lea ecx, [ebp - 0x850]
push ecx
mov ecx, ebx
mov dword [ebp - 0x868], 0
call dword [eax + 0x1c]
lea ecx, [ebp - 0x86c]
push dword [eax]
push dword [esi + 0x40]
call fcn.1002a680
mov edx, dword [ebp - 0x850]
mov dword [ebx + 0x80], eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10102c8e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.1014e330
mov ecx, eax
call fcn.1014e360
mov dword [ebp - 0x864], eax
test eax, eax
je 0x10102cb2
push 0
call fcn.1014e330
mov ecx, eax
call fcn.1009a500
mov ecx, dword [ebx + 0xd0]
mov eax, 0x92492493
sub ecx, dword [ebx + 0xcc]
xor esi, esi
imul ecx
push edi
add edx, ecx
mov dword [ebp - 0x860], 1
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
je 0x10102e94
mov ecx, dword [ebp + 8]
mov eax, dword [ebx + 0xcc]
mov ecx, dword [ecx]
nop
test ecx, ecx
je 0x10102cf8
cmp ecx, dword [eax]
je 0x10102d05
inc esi
add eax, 0x1c
cmp esi, edi
jb 0x10102cf0
jmp 0x10102e94
push 0x210
lea eax, [ebp - 0x214]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0xcc]
lea edi, [esi*8]
add esp, 0xc
lea ecx, [ebp - 0x214]
sub edi, esi
mov edx, 0x104
mov esi, dword [eax + edi*4 + 4]
lea esp, [esp]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10102d62
movzx eax, word [esi]
test ax, ax
je 0x10102d62
mov word [ecx], ax
add esi, 2
add ecx, 2
sub edx, 1
jne 0x10102d40
jmp 0x10102d66
test edx, edx
jne 0x10102d69
sub ecx, 2
xor eax, eax
mov word [ecx], ax
mov ecx, 0x1025b450
mov eax, dword [ebx + 0xcc]
mov eax, dword [eax + edi*4 + 0xc]
and eax, 2
push eax
call fcn.10008cd0
mov dword [ebp - 0x850], eax
lea eax, [ebp - 0x214]
push eax
call fcn.1000aa00
mov dword [ebp - 0x858], eax
add esp, 4
mov eax, dword [ebp - 0x86c]
test eax, eax
je 0x10102e55
cmp dword [eax], 2
je 0x10102e55
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
push dword [ebp - 0x870]
mov ecx, dword [ebx + 0xc0]
push 0
push 1
lea esi, [eax + 0x10]
push 1
lea eax, [ebp - 0x214]
mov dword [ebp - 0x85c], esi
push eax
call fcn.10121560
test eax, eax
je 0x10102e13
mov eax, dword [ebx + 0xcc]
push dword [eax + edi*4 + 8]
push dword [eax + edi*4 + 4]
call fcn.10103460
lea eax, [ebp - 0x214]
push eax
call fcn.100d9640
add esp, 0xc
jmp 0x10102e3d
push dword [ebp - 8]
lea eax, [ebp - 0x85c]
push dword [ebp - 0xc]
push str.FILE_STAT:_d__REPL_STAT:__d
push eax
call fcn.10002cb0
mov esi, dword [ebp - 0x85c]
add esp, 0x10
mov dword [ebp - 0x860], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10102e55
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x850]
mov ecx, 0x1025b450
call fcn.10008cd0
cmp dword [ebp - 0x858], 0
mov eax, 0x102104d0
jne 0x10102e78
mov eax, 0x1020ed24
push eax
push 0
lea eax, [ebp - 0x214]
push eax
push dword [ebx + 0x80]
call fcn.10026170
mov ecx, eax
call fcn.1002b1e0
mov ecx, dword [ebx + 0xdc]
mov eax, 0x92492493
sub ecx, dword [ebx + 0xd8]
xor esi, esi
imul ecx
add edx, ecx
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
mov edx, dword [ebp + 8]
je 0x10103213
mov ecx, dword [edx]
mov eax, dword [ebx + 0xd8]
test ecx, ecx
je 0x10102ece
cmp ecx, dword [eax]
je 0x10102edb
inc esi
add eax, 0x1c
cmp esi, edi
jb 0x10102ec6
jmp 0x10103213
push 0x634
lea eax, [ebp - 0x848]
mov dword [ebp - 0x84c], 0x638
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0xd8]
lea ecx, [esi*8]
sub ecx, esi
add esp, 0xc
shl ecx, 2
mov edx, 0x104
mov dword [ebp - 0x858], ecx
mov esi, dword [ecx + eax + 0x10]
lea ecx, [ebp - 0x20c]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10102f44
movzx eax, word [esi]
test ax, ax
je 0x10102f44
mov word [ecx], ax
add esi, 2
add ecx, 2
sub edx, 1
jne 0x10102f22
jmp 0x10102f48
test edx, edx
jne 0x10102f4b
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x85c]
call fcn.10002490
push 0x102054a0
push 0x10202944
lea ecx, [ebp - 0x85c]
call fcn.10003450
mov edi, dword [ebp - 0x85c]
lea ecx, [ebp - 0x638]
mov esi, edi
mov eax, ecx
mov edx, 0x104
sub esi, eax
jmp 0x10102fa0
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10102fc0
movzx eax, word [ecx + esi]
test ax, ax
je 0x10102fc0
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10102fa0
jmp 0x10102fc4
test edx, edx
jne 0x10102fc7
sub ecx, 2
xor eax, eax
mov word [ecx], ax
mov eax, dword [ebx + 0xd8]
mov ecx, dword [ebp - 0x858]
push dword [ecx + eax + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea edx, [ebp - 0x430]
mov esi, 0x104
mov ecx, edx
sub eax, ecx
mov dword [ebp - 0x850], eax
jmp 0x10103000
lea ecx, [esi + 0x7ffffefa]
test ecx, ecx
je 0x10103026
movzx eax, word [edx + eax]
test ax, ax
je 0x10103026
mov word [edx], ax
add edx, 2
mov eax, dword [ebp - 0x850]
sub esi, 1
jne 0x10103000
jmp 0x1010302a
test esi, esi
jne 0x1010302d
sub edx, 2
xor eax, eax
lea ecx, [ebp - 0x840]
mov word [edx], ax
mov edx, 0x104
mov eax, dword [ebx + 0xd8]
add eax, dword [ebp - 0x858]
mov dword [ebp - 0x850], eax
mov esi, dword [eax + 4]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10103074
movzx eax, word [esi]
test ax, ax
je 0x10103074
mov word [ecx], ax
add esi, 2
add ecx, 2
sub edx, 1
jne 0x10103052
jmp 0x10103078
test edx, edx
jne 0x1010307b
sub ecx, 2
xor eax, eax
mov word [ecx], ax
mov ecx, 0x1025b450
mov eax, dword [ebp - 0x850]
mov eax, dword [eax + 0xc]
and eax, 2
push eax
call fcn.10008cd0
mov dword [ebp - 0x874], eax
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x101030b3
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xe
call fcn.10003680
add esp, 4
test eax, eax
je 0x101030cc
lea ecx, [ebp - 0x840]
push ecx
call eax
jmp 0x101030d9
lea eax, [ebp - 0x840]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x858], eax
test esi, esi
je 0x101030ea
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x858]
cmp eax, 0xffffffff
je 0x10103103
mov dword [ebp - 0x850], 1
test al, 0x10
je 0x1010310d
mov dword [ebp - 0x850], 0
mov eax, dword [ebp - 0x86c]
test eax, eax
je 0x101031b9
cmp dword [eax], 2
je 0x101031b9
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
push dword [ebp - 0x870]
mov ecx, dword [ebx + 0xc0]
mov dword [ebp - 0x858], 0
lea esi, [eax + 0x10]
lea eax, [ebp - 0x858]
mov dword [ebp - 0x85c], esi
push eax
lea eax, [ebp - 0x84c]
push eax
call fcn.101215b0
test eax, eax
je 0x10103177
lea eax, [ebp - 0x840]
push eax
call fcn.100d9640
add esp, 4
jmp 0x101031a1
push dword [ebp - 0x858]
lea eax, [ebp - 0x85c]
push str.FILE_STAT:0__REPL_STAT:__d
push eax
call fcn.10002cb0
mov esi, dword [ebp - 0x85c]
add esp, 0xc
mov dword [ebp - 0x860], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x101031b9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x874]
mov ecx, 0x1025b450
call fcn.10008cd0
cmp dword [ebp - 0x850], 0
mov eax, 0x102104d0
jne 0x101031dc
mov eax, 0x1020ed24
push eax
push 0
lea eax, [ebp - 0x840]
push eax
push dword [ebx + 0x80]
call fcn.10026170
mov ecx, eax
call fcn.1002b1e0
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10103210
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0xe8]
xor esi, esi
mov ecx, dword [ebx + 0xe4]
sub eax, ecx
sar eax, 3
test eax, eax
je 0x1010329e
lea ebx, [ebx]
mov eax, dword [edx]
cmp eax, dword [ecx + esi*8]
jne 0x10103288
mov eax, dword [ebp - 0x86c]
test eax, eax
je 0x10103288
cmp dword [eax], 2
je 0x10103288
lea eax, [ebp - 0x850]
mov dword [ebp - 0x850], 0
push eax
push dword [ecx + esi*8 + 4]
mov ecx, dword [ebx + 0xc4]
call fcn.101209e0
mov edx, dword [ebp + 8]
neg eax
sbb eax, eax
and dword [ebp - 0x860], eax
cmp dword [ebx + 0xc8], 0
jne 0x10103288
mov eax, dword [ebp - 0x850]
mov dword [ebx + 0xc8], eax
mov eax, dword [ebx + 0xe8]
inc esi
mov ecx, dword [ebx + 0xe4]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x10103230
cmp dword [ebp - 0x864], 0
je 0x101032b5
push 1
call fcn.1014e330
mov ecx, eax
call fcn.1009a500
mov esi, dword [ebp - 0x868]
test esi, esi
je 0x101033ae
call fcn.10026170
lea ecx, [ebp - 0x851]
mov ebx, eax
call fcn.10129b80
cmp byte [ebx + 0x210], 0
je 0x101033a3
lea eax, [ebp - 0x864]
mov dword [ebp - 0x864], esi
push eax
lea eax, [ebp - 0x874]
mov ecx, ebx
push eax
call fcn.1002aeb0
mov esi, dword [eax]
cmp esi, dword [ebx]
je 0x101033a3
lea edi, [esi + 0x14]
mov ecx, ebx
push edi
push dword [esi + 0x10]
call fcn.1002b7c0
mov ecx, edi
call fcn.1002a820
mov edi, dword [esi + 0x10]
test edi, edi
je 0x1010337c
mov ecx, dword [edi + 0x28]
cmp ecx, 8
jb 0x1010335d
mov eax, dword [edi + 0x14]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x10103353
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101033e7
mov eax, edx
push ecx
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
xor eax, eax
mov dword [edi + 0x24], 0
push 0x34
mov dword [edi + 0x28], 7
push edi
mov word [edi + 0x14], ax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
push esi
mov ecx, ebx
call fcn.100151b0
mov edi, eax
lea ecx, [edi + 0x14]
call fcn.1002a820
push 0x20
push dword [edi + 0x14]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push 0x1c
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x10
lea ecx, [ebp - 0x851]
call fcn.10129ba0
mov ecx, dword [ebp - 0x86c]
mov eax, dword [ebp - 0x860]
pop edi
pop esi
mov dword [ecx], 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4
call fcn.101e6c40
int3