Function at 0x10104c40
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x230], eax
xor ebx, ebx
mov eax, dword [ecx + 0xc0]
mov dword [ebp - 0x214], ebx
test eax, eax
je 0x10104c87
cmp dword [eax + 0x34], ebx
jne 0x10104c87
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [0x1025ad68]
mov eax, 0x66666667
sub ecx, dword [0x1025ad64]
imul ecx
mov dword [ebp - 0x260], ebx
sar edx, 3
mov eax, edx
mov dword [ebp - 0x25c], ebx
shr eax, 0x1f
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x224], ebx
add eax, edx
je 0x10105169
push esi
xor esi, esi
push edi
mov edi, dword [ebp - 0x228]
mov dword [ebp - 0x210], esi
cmp dword [ebp + 0x10], 0
je 0x10104d93
add esi, dword [0x1025ad64]
or ebx, 1
mov dword [ebp - 0x214], ebx
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], 2
lea ecx, [eax - 0x10]
jg 0x10104d05
push ecx
call fcn.10002a60
add esp, 4
lea edi, [eax + 0x10]
jmp 0x10104d53
mov ecx, dword [ecx]
test ecx, ecx
je 0x10104d14
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x10104d20
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 0x1010518a
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
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10104d86
test dx, dx
je 0x10104d82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10104d86
add eax, 4
add ecx, 4
test dx, dx
jne 0x10104d60
xor eax, eax
jmp 0x10104d8b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10104d93
mov bl, 1
jmp 0x10104d95
xor bl, bl
mov eax, dword [ebp - 0x214]
test al, 1
je 0x10104dc0
and eax, 0xfffffffe
lea edx, [edi - 0x10]
mov dword [ebp - 0x214], eax
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10104dc0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x1010511f
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
mov ecx, eax
add esp, 0xc
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x10104e10
movzx ecx, word [esi + eax]
test cx, cx
je 0x10104e10
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10104df0
jmp 0x10104e14
test edx, edx
jne 0x10104e17
sub eax, 2
xor ecx, ecx
mov word [eax], cx
mov eax, dword [0x1025ad64]
mov ecx, dword [ebp - 0x210]
push dword [ecx + eax + 8]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10104e4e
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xe
call fcn.10003680
add esp, 4
test eax, eax
je 0x10104e67
lea ecx, [ebp - 0x20c]
push ecx
call eax
jmp 0x10104e74
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
test esi, esi
je 0x10104e81
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 0xffffffff
je 0x10104e8f
test bl, 0x10
je 0x1010511f
mov esi, dword [ebp - 0x210]
add esi, dword [0x1025ad64]
mov eax, dword [esi]
mov dword [ebp - 0x220], 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 - 0x218], eax
mov eax, dword [esi + 0x10]
sub eax, 0x10
push eax
call fcn.10002a60
add eax, 0x10
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x21c], eax
xor eax, eax
cmp dword [ebp + 0x10], eax
mov dword [ebp - 0x278], ecx
mov ecx, dword [ebp - 0x220]
setne al
inc eax
mov dword [ebp - 0x274], ecx
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x270], eax
lea eax, [ebx - 0x10]
push eax
mov dword [ebp - 0x228], eax
call fcn.10002a60
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x218]
add eax, 0xfffffff0
mov dword [ebp - 0x26c], esi
push eax
mov dword [ebp - 0x218], eax
call fcn.10002a60
lea ebx, [eax + 0x10]
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
mov dword [ebp - 0x268], ebx
push eax
mov dword [ebp - 0x21c], eax
call fcn.10002a60
add eax, 0x10
lea ecx, [ebp - 0x254]
add esp, 0x18
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10002490
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x250], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x24c], eax
lea eax, [esi - 0x10]
push eax
call fcn.10002a60
add eax, 0x10
mov dword [ebp - 0x248], eax
lea eax, [ebx - 0x10]
push eax
call fcn.10002a60
add eax, 0x10
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
push eax
call fcn.10002a60
mov ebx, dword [ebp - 0x230]
lea ecx, [ebp - 0x254]
add esp, 0xc
add eax, 0x10
mov dword [ebp - 0x240], eax
mov eax, dword [ebx + 4]
push ecx
cmp dword [ebx + 8], eax
je 0x10104feb
mov ecx, eax
call fcn.10102660
add dword [ebx + 4], 0x18
jmp 0x10104ff3
push eax
mov ecx, ebx
call fcn.10102280
lea ecx, [ebp - 0x250]
call fcn.101029a0
mov edx, dword [ebp - 0x254]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1010501c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x274]
call fcn.101029a0
cmp dword [ebp + 0x10], 0
je 0x101050ce
mov esi, dword [ebx + 4]
lea ecx, [ebp - 0x23c]
push 0xfffffffffffffff8
push 0x10202940
call fcn.10002490
push eax
lea eax, [ebp - 0x238]
push 0x9cdc
push eax
call fcn.100053d0
add esp, 0xc
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.10007e90
add esp, 0xc
lea ecx, [esi - 8]
push eax
call fcn.10002790
mov edx, dword [ebp - 0x234]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10105092
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x238]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101050b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x23c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101050ce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101050e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x218]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10105104
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x228]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1010511f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x1025ad68]
mov eax, 0x66666667
sub ecx, dword [0x1025ad64]
mov ebx, dword [ebp - 0x224]
mov esi, dword [ebp - 0x210]
inc ebx
imul ecx
add esi, 0x14
mov dword [ebp - 0x224], ebx
sar edx, 3
mov eax, edx
mov dword [ebp - 0x210], esi
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x10105167
mov ebx, dword [ebp - 0x214]
jmp 0x10104cd2
pop edi
pop esi
lea ecx, [ebp - 0x260]
call fcn.10102850
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0xc
call fcn.10003970
int3