Function at 0x10104390
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov dword [ebp - 0x20], ecx
mov eax, 0x66666667
mov ecx, dword [0x1025ad5c]
sub ecx, dword [0x1025ad58]
imul ecx
push ebx
sar edx, 3
xor ecx, ecx
mov eax, edx
mov dword [ebp - 0xc], 0
shr eax, 0x1f
xor ebx, ebx
push esi
add eax, edx
mov dword [ebp - 0x4c], ebx
xor esi, esi
mov dword [ebp - 0x44], ebx
mov edx, 0x43c
mov dword [ebp - 0x14], esi
mul edx
push edi
push 0x1025c02a
seto cl
mov dword [ebp - 0x48], esi
neg ecx
or ecx, eax
push ecx
call fcn.101c85a0
mov edi, eax
add esp, 8
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x1010440a
lea ecx, [ebp - 0x4c]
call fcn.10102850
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [0x1025ad5c]
mov eax, 0x66666667
sub ecx, dword [0x1025ad58]
imul ecx
mov dword [ebp - 0x1c], ebx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10104868
mov esi, dword [ebp + 8]
lea ebx, [edi + 4]
sub esi, edi
mov dword [ebp - 0x10], ebx
xor ecx, ecx
sub esi, 4
mov dword [ebp + 8], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], ecx
lea esp, [esp]
cmp dword [ebp + 0x10], 0
je 0x10104508
mov esi, dword [0x1025ad58]
or dword [ebp - 0xc], 1
add esi, ecx
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], 2
lea ecx, [eax - 0x10]
jg 0x10104480
push ecx
call fcn.10002a60
add esp, 4
lea edi, [eax + 0x10]
jmp 0x101044ce
mov ecx, dword [ecx]
test ecx, ecx
je 0x1010448f
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x1010449b
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
mov esi, dword [esi + 8]
push 2
push 2
call dword [edx]
test eax, eax
je 0x10104929
push 4
lea edi, [eax + 0x10]
xor eax, eax
mov dword [edi - 0xc], 2
push esi
push 4
push edi
mov word [edi + 4], ax
call fcn.10004510
add esp, 0x10
mov eax, edi
mov ecx, 0x1020c868
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x101044fb
test dx, dx
je 0x101044f7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x101044fb
add eax, 4
add ecx, 4
test dx, dx
jne 0x101044d5
xor eax, eax
jmp 0x10104500
sbb eax, eax
or eax, 1
mov byte [ebp - 1], 1
test eax, eax
je 0x1010450c
mov byte [ebp - 1], 0
mov eax, dword [ebp - 0xc]
test al, 1
je 0x10104531
and eax, 0xfffffffe
lea edx, [edi - 0x10]
mov dword [ebp - 0xc], eax
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10104531
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 1], 0
jne 0x1010482b
push 0x43c
lea esi, [ebx - 4]
push 0
push esi
call sub.msvcrt.dll_memset
mov dword [esi], 0x43c
add esp, 0xc
mov esi, dword [ebp + 8]
mov edx, 0x104
mov dword [ebx + 0x420], 1
mov eax, ebx
jmp 0x10104570
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x10104590
movzx ecx, word [eax + esi]
test cx, cx
je 0x10104590
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10104570
jmp 0x10104594
test edx, edx
jne 0x10104597
sub eax, 2
xor ecx, ecx
mov word [eax], cx
mov eax, dword [0x1025ad58]
mov ecx, dword [ebp - 8]
push dword [ecx + eax + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test ebx, ebx
je 0x101045fc
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x101045c9
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xe
call fcn.10003680
add esp, 4
push ebx
test eax, eax
je 0x101045dc
call eax
jmp 0x101045e2
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x18], eax
test esi, esi
je 0x101045f0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x101045fc
test al, 0x10
je 0x10104603
or dword [ebx + 0x420], 4
mov esi, dword [ebp - 8]
add esi, dword [0x1025ad58]
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 8]
sub eax, 0x10
push eax
call fcn.10002a60
lea ebx, [eax + 0x10]
mov eax, dword [esi + 0xc]
sub eax, 0x10
push eax
call fcn.10002a60
add eax, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x10]
sub eax, 0x10
push eax
call fcn.10002a60
mov ecx, dword [ebp - 0x10]
add eax, 0x10
mov dword [ebp - 0x2c], eax
xor eax, eax
cmp dword [ebp + 0x10], eax
mov dword [ebp - 0x7c], ecx
mov ecx, dword [ebp - 0x18]
setne al
inc eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x74], eax
lea eax, [ebx - 0x10]
push eax
mov dword [ebp - 0x40], eax
call fcn.10002a60
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov dword [ebp - 0x70], esi
push eax
mov dword [ebp - 0x28], eax
call fcn.10002a60
lea ebx, [eax + 0x10]
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov dword [ebp - 0x6c], ebx
push eax
mov dword [ebp - 0x2c], eax
call fcn.10002a60
add esp, 0x18
lea ecx, [ebp - 0x64]
add eax, 0x10
mov dword [ebp - 0x68], eax
push dword [ebp - 0x10]
call fcn.10002490
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x5c], eax
lea eax, [esi - 0x10]
push eax
call fcn.10002a60
add eax, 0x10
mov dword [ebp - 0x58], eax
lea eax, [ebx - 0x10]
push eax
call fcn.10002a60
add eax, 0x10
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x68]
add eax, 0xfffffff0
push eax
call fcn.10002a60
mov ebx, dword [ebp - 0x14]
add eax, 0x10
add esp, 0xc
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x64]
push eax
cmp dword [ebp - 0x44], ebx
je 0x10104703
mov ecx, ebx
call fcn.10102660
add ebx, 0x18
mov dword [ebp - 0x48], ebx
jmp 0x1010470f
push ebx
lea ecx, [ebp - 0x4c]
call fcn.10102280
mov ebx, dword [ebp - 0x48]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x14], ebx
call fcn.101029a0
mov edx, dword [ebp - 0x64]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10104735
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x78]
call fcn.101029a0
cmp dword [ebp + 0x10], 0
je 0x101047d0
lea esi, [ebx - 8]
push esi
push 0x10202940
lea ecx, [ebp - 0x3c]
call fcn.10002490
push eax
lea eax, [ebp - 0x38]
push 0x9cdc
push eax
call fcn.100053d0
add esp, 0xc
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.10007e90
add esp, 0xc
mov ecx, esi
push eax
call fcn.10002790
mov edx, dword [ebp - 0x34]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1010479a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x38]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101047b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x3c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101047d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x10]
or eax, 0xffffffff
sub dword [ebp + 8], 0x43c
add ebx, 0x43c
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101047fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10104813
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x40]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1010482b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x1025ad5c]
mov eax, 0x66666667
sub ecx, dword [0x1025ad58]
mov esi, dword [ebp - 0x1c]
add dword [ebp - 8], 0x14
inc esi
imul ecx
mov dword [ebp - 0x1c], esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x1010485f
mov ecx, dword [ebp - 8]
jmp 0x10104450
mov ebx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0xbc], 0
je 0x10104906
mov ecx, dword [ecx + 4]
sub esi, ebx
mov eax, 0x2aaaaaab
imul esi
mov eax, dword [ecx]
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
push 0x102121c0
push esi
push edi
mov dword [ebp + 8], esi
call dword [eax]
mov ecx, dword [ebp - 0x20]
push eax
mov ecx, dword [ecx + 0xbc]
call fcn.10175da0
test eax, eax
je 0x10104906
test esi, esi
je 0x10104906
mov eax, dword [ebp + 8]
lea esi, [edi + 0x424]
mov edi, dword [ebp + 0xc]
nop
cmp dword [esi - 0x214], 0
je 0x101048ce
test byte [esi], 4
je 0x101048f5
cmp dword [esi + 4], 0
je 0x101048f5
mov eax, dword [edi + 4]
push ebx
cmp dword [edi + 8], eax
je 0x101048ea
mov ecx, eax
call fcn.10102660
add dword [edi + 4], 0x18
jmp 0x101048f2
push eax
mov ecx, edi
call fcn.10102280
mov eax, dword [ebp + 8]
add esi, 0x43c
add ebx, 0x18
sub eax, 1
mov dword [ebp + 8], eax
jne 0x101048c0
push dword [ebp - 0x24]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [ebp - 0x4c]
mov esi, 1
call fcn.10102850
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.10003970
int3