Function at 0x4140f0
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x49b079
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x850
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [esp + 0x878]
push 0
push eax
mov dword [esp + 0x870], 2
call fcn.00476665
or ebx, 0xffffffff
add esp, 8
cmp eax, ebx
jne 0x414177
lea ecx, [esp + 0x878]
mov byte [esp + 0x868], 1
call fcn.0048c403
lea ecx, [esp + 0x87c]
mov byte [esp + 0x868], 0
call fcn.0048c403
lea ecx, [esp + 0x880]
mov dword [esp + 0x868], ebx
call fcn.0048c403
xor al, al
jmp 0x4145dc
mov ecx, dword [esp + 0x880]
push str.SCRL
push ecx
call fcn.004769c9
add esp, 8
test eax, eax
jne 0x41419a
mov dword [esp + 0x10], 0x1b59
jmp 0x4141c1
mov edx, dword [esp + 0x880]
push str.QUIZ
push edx
call fcn.004769c9
add esp, 8
neg eax
sbb eax, eax
and eax, 0xffffe4a6
add eax, 0x1b5a
mov dword [esp + 0x10], eax
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x451]
mov byte [esp + 0x450], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x878]
mov byte [ebp + 0x16], 1
lea ecx, [esp + 0x878]
mov eax, dword [eax - 8]
push eax
call fcn.0048c833
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0x10
jne 0x4142ad
mov ecx, dword [esp + 0x878]
lea edx, [esp + 0x880]
push ecx
mov esi, dword [ecx - 8]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.0048c178
push ecx
lea eax, [esp + 0x884]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov byte [esp + 0x874], 3
call fcn.0048c178
push ecx
lea edx, [esp + 0x884]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x878], 4
call fcn.0048c178
mov eax, dword [esp + 0x87c]
push esi
push eax
mov ecx, ebp
mov byte [esp + 0x87c], 2
call fcn.00414d30
lea ecx, [esp + 0x878]
mov byte [ebp + 0x16], 0
mov byte [esp + 0x868], 1
call fcn.0048c403
lea ecx, [esp + 0x87c]
mov byte [esp + 0x868], 0
call fcn.0048c403
mov dword [esp + 0x868], ebx
jmp 0x4145ce
mov ecx, 0x104
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x30]
call fcn.00490080
mov ecx, dword [esp + 0x878]
push 0
push 0
mov byte [esp + 0x870], 5
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x880]
push eax
call fcn.0048c833
push eax
lea ecx, [esp + 0x3c]
call fcn.00490192
test eax, eax
jne 0x41431f
mov eax, dword [esp + 0x10]
mov edx, dword [ebp]
push eax
push 0x64
push 0xb
mov ecx, ebp
call dword [edx + 0x10]
lea ecx, [esp + 0x30]
mov byte [ebp + 0x16], 0
mov byte [esp + 0x868], 2
call fcn.004900d5
jmp 0x414135
lea ecx, [esp + 0x30]
call fcn.0049048c
mov ebx, eax
lea ecx, [ebx + 0x411]
push ecx
call fcn.0048c144
mov edi, eax
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], edi
lea edx, [edi + 0x410]
push ebx
push edx
mov byte [edi + ebx + 0x410], 0
call fcn.004902af
lea ecx, [esp + 0x30]
call fcn.004903ad
mov eax, dword [str.FILE]
mov ecx, dword [esp + 0x880]
mov dword [esp + 0x40], eax
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x880]
push eax
call fcn.0048c833
mov edx, dword [eax]
mov eax, dword [esp + 0x87c]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], ebx
mov eax, dword [eax - 8]
lea ecx, [esp + 0x87c]
push eax
call fcn.0048c833
lea ecx, [esp + 0x4c]
push eax
push ecx
call fcn.004750c2
mov ecx, 0x104
lea esi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x410]
mov eax, 0x7e07e07f
imul ecx
sar edx, 9
mov eax, edx
mov dword [esp + 0x30], ecx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov ebx, edx
mov ecx, 0x410
cdq
idiv ecx
xor eax, eax
add esp, 8
cmp ebx, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
jle 0x414492
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], edx
mov esi, dword [esp + 0x24]
mov ecx, 0x104
lea edi, [esp + 0x450]
push 0x2328
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x454]
push 0x410
push eax
mov ecx, ebp
call fcn.00413850
cmp eax, 0x410
jne 0x414555
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
cdq
idiv dword [esp + 0x28]
cmp ecx, eax
jge 0x41445f
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp]
push ecx
push eax
push 7
mov ecx, ebp
mov dword [esp + 0x38], eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
inc eax
add esi, 0x410
add edx, 0x19640
cmp eax, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], edx
jl 0x414404
mov edx, dword [esp + 0x18]
xor eax, eax
cmp edx, eax
je 0x414568
mov esi, ebx
mov ecx, edx
shl esi, 6
add esi, ebx
mov ebx, dword [esp + 0x20]
shl esi, 4
mov eax, ecx
add esi, ebx
lea edi, [esp + 0x450]
push 0x2328
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x458]
push ecx
mov ecx, ebp
call fcn.00413850
cmp eax, dword [esp + 0x18]
je 0x41456c
mov eax, dword [esp + 0x10]
mov edx, dword [ebp]
push eax
push 0x64
push 0xb
mov ecx, ebp
call dword [edx + 0x10]
push ebx
call fcn.0048c16d
add esp, 4
lea ecx, [esp + 0x30]
mov byte [ebp + 0x16], 0
mov byte [esp + 0x868], 2
call fcn.004900d5
lea ecx, [esp + 0x878]
mov byte [esp + 0x868], 1
call fcn.0048c403
lea ecx, [esp + 0x87c]
mov byte [esp + 0x868], 0
call fcn.0048c403
lea ecx, [esp + 0x880]
mov dword [esp + 0x868], 0xffffffff
call fcn.0048c403
xor al, al
jmp 0x4145dc
mov eax, dword [esp + 0x10]
mov edx, dword [ebp]
push eax
push 0x64
push 0xb
mov ecx, ebp
call dword [edx + 0x10]
jmp 0x4144fa
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov edx, dword [ebp]
push eax
push 0x64
push 9
mov ecx, ebp
call dword [edx + 0x10]
push ebx
call fcn.0048c16d
add esp, 4
lea ecx, [esp + 0x30]
mov byte [ebp + 0x16], 0
mov byte [esp + 0x868], 2
call fcn.004900d5
lea ecx, [esp + 0x878]
mov byte [esp + 0x868], 1
call fcn.0048c403
lea ecx, [esp + 0x87c]
mov byte [esp + 0x868], 0
call fcn.0048c403
mov dword [esp + 0x868], 0xffffffff
lea ecx, [esp + 0x880]
call fcn.0048c403
mov al, 1
mov ecx, dword [esp + 0x860]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x85c
ret 0x14