Function at 0x10020be1
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x10020e04
lea eax, [ebp + 0x10]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x10020c51
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x38]
call fcn.1001308d
pop ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
push dword [eax]
push dword [ebp - 0x40]
call fcn.100209aa
pop ecx
pop ecx
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
jmp 0x10020e43
mov dword [ebp - 0x48], 0x1610
cmp dword [ebp - 0x48], 0x558
jge 0x10020dee
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x10617330
call fcn.10021495
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x4c], 0
je 0x10020dee
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x10617330
call fcn.10021495
lea edx, [ebp - 2]
mov ecx, eax
call fcn.10025fea
mov ecx, eax
call fcn.10021495
lea edx, [ebp - 1]
mov ecx, eax
call fcn.10025fea
mov ecx, eax
call fcn.10021495
lea edx, [ebp - 2]
mov ecx, eax
call fcn.10025fea
mov ecx, eax
call fcn.10021495
movsx eax, byte [ebp - 1]
cmp eax, 0x2b
jne 0x10020cff
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
imul ecx, dword [ebp - 0x14]
add eax, ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x10020d63
movsx eax, byte [ebp - 1]
cmp eax, 0x2d
jne 0x10020d27
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
imul ecx, dword [ebp - 0x14]
sub eax, ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x10020d63
movsx eax, byte [ebp - 1]
cmp eax, 0x2a
jne 0x10020d46
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x10020d63
movsx eax, byte [ebp - 1]
cmp eax, 0x2f
jne 0x10020d63
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 8]
push dword [ebp - 0xc]
mov ecx, 0x10617278
call fcn.10021660
mov dl, 0x2f
mov ecx, eax
call fcn.100260df
mov ecx, eax
call fcn.10021660
mov edx, 0x10007ed0
mov ecx, eax
call fcn.10025ce5
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.10020bab
pop ecx
pop ecx
push eax
call fcn.10057d67
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
cdq
idiv dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
cdq
idiv dword [ebp - 0x24]
mov dword [ebp - 8], eax
push dword [ebp - 8]
push dword [ebp - 0xc]
mov ecx, 0x10617278
call fcn.10021660
mov dl, 0x2f
mov ecx, eax
call fcn.100260df
mov ecx, eax
call fcn.10021660
push 0x10026295
mov ecx, 0x10617278
call fcn.10021654
jmp 0x10020c73
mov byte [ebp - 3], 0
movzx eax, byte [ebp - 3]
test eax, eax
je 0x10020e02
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x10020e43
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x50], eax
push 0x27a7
push 0x23fd
push 0x59ee
push 1
push 0x65df
push 0x3cb8
push 0x7545
push 0x7ff5
push dword [ebp - 0x50]
push dword [ebp - 0x54]
call fcn.1000d388
add esp, 0x28
mov esp, ebp
pop ebp
ret