Function at 0x40bef0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bc82
mov eax, dword fs:[0]
push eax
sub esp, 0x4a0
mov eax, dword [0x439190]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x498], esi
mov dword [ebp - 0x4a0], eax
mov dword [ebp - 0x464], 7
mov dword [ebp - 0x468], edi
mov word [ebp - 0x478], cx
push 0x206
lea eax, [ebp - 0x422]
xor edx, edx
push edi
mov dword [ebp - 4], edi
push eax
mov word [ebp - 0x424], dx
call fcn.00419b60
mov ebx, dword [esi]
add esp, 0xc
lea esi, [ebp - 0x45c]
call fcn.0040b630
mov byte [ebp - 4], 1
cmp dword [ebp - 0x44c], edi
je 0x40c32f
push 0x206
lea edx, [ebp - 0x21a]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x21c], cx
call fcn.00419b60
mov eax, dword [ebp - 0x4a0]
mov esi, dword [eax]
mov eax, dword [eax + 4]
add esp, 0xc
mov dword [ebp - 0x49c], esi
cmp esi, eax
jb 0x40bfe6
cmp dword [ebp - 0x448], 8
jb 0x40bfd3
mov edx, dword [ebp - 0x45c]
push edx
call fcn.0041866f
add esp, 4
mov eax, 1
jmp 0x40c34a
mov esi, dword [ebp - 0x49c]
mov ebx, 8
cmp dword [esi + 0x14], ebx
jb 0x40bff4
mov eax, dword [esi]
jmp 0x40bff6
mov eax, esi
lea edx, [ebp - 0x424]
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, di
jne 0x40c000
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x40c11c
cmp eax, 0x2010
je 0x40c11c
mov ebx, 1
mov edi, esi
call fcn.00406850
mov ecx, dword [esi + 0x10]
sub ecx, eax
dec ecx
push ecx
inc eax
push eax
lea ecx, [ebp - 0x440]
push ecx
mov ecx, esi
call fcn.004064f0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x45c]
mov esi, 8
cmp dword [ebp - 0x448], esi
jae 0x40c070
lea eax, [ebp - 0x45c]
lea edx, [ebp - 0x21c]
sub edx, eax
jmp 0x40c080
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x40c080
mov eax, dword [ebp - 0x440]
cmp dword [ebp - 0x42c], esi
jae 0x40c0a3
lea eax, [ebp - 0x440]
push eax
lea edx, [ebp - 0x21c]
push edx
mov eax, edx
push 0x433890
push eax
call fcn.004025f0
mov ebx, dword [ebp - 0x498]
add esp, 0x10
lea ecx, [ebp - 0x424]
push ecx
lea esi, [ebp - 0x21c]
call fcn.0040bd10
test al, al
je 0x40c2d8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x42c], 8
jb 0x40c0f7
mov edx, dword [ebp - 0x440]
push edx
call fcn.0041866f
add esp, 4
xor edi, edi
mov eax, dword [ebp - 0x49c]
mov ecx, dword [ebp - 0x4a0]
add eax, 0x1c
mov dword [ebp - 0x49c], eax
cmp eax, dword [ecx + 4]
jb 0x40bfe0
jmp 0x40bfbb
cmp dword [esi + 0x14], ebx
jb 0x40c125
mov edx, dword [esi]
jmp 0x40c127
mov edx, esi
xor eax, eax
mov word [ebp - 0x440], ax
mov eax, edx
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], edi
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40c145
sub eax, ebx
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x440]
call fcn.004015f0
mov ecx, dword [ebp - 0x498]
mov byte [ebp - 4], 2
mov eax, dword [ecx + 0x120]
mov edx, dword [ebp - 0x430]
sub edx, eax
dec edx
push edx
inc eax
push eax
lea eax, [ebp - 0x494]
push eax
lea ecx, [ebp - 0x440]
call fcn.004064f0
mov ebx, eax
lea ecx, [ebp - 0x440]
mov esi, 8
cmp ecx, ebx
je 0x40c211
cmp dword [ebp - 0x42c], esi
jb 0x40c1b7
mov edx, dword [ebp - 0x440]
push edx
call fcn.0041866f
add esp, 4
xor eax, eax
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], edi
mov word [ebp - 0x440], ax
cmp dword [ebx + 0x14], esi
jae 0x40c1ef
mov eax, dword [ebx + 0x10]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x440]
push ebx
push edx
call fcn.00418220
add esp, 0xc
jmp 0x40c1f9
mov eax, dword [ebx]
mov dword [ebp - 0x440], eax
mov dword [ebx], edi
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x430], ecx
mov edx, dword [ebx + 0x14]
mov dword [ebp - 0x42c], edx
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
mov byte [ebp - 4], 2
cmp dword [ebp - 0x480], esi
jb 0x40c22c
mov eax, dword [ebp - 0x494]
push eax
call fcn.0041866f
add esp, 4
mov edx, dword [ebp - 0x45c]
cmp dword [ebp - 0x448], esi
jae 0x40c240
lea edx, [ebp - 0x45c]
sub esp, 0x1c
mov ecx, esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], edi
mov word [ecx], ax
mov eax, edx
mov dword [ebp - 0x4a8], esp
lea esi, [eax + 2]
nop
mov bx, word [eax]
add eax, 2
cmp bx, di
jne 0x40c260
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.004015f0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4a4], esp
push 0xffffffffffffffff
mov byte [ebp - 4], 4
push edi
lea eax, [ebp - 0x440]
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], edi
push eax
mov word [ecx], dx
call fcn.004014e0
mov ecx, dword [ebp - 0x498]
push ecx
mov byte [ebp - 4], 2
call fcn.0040b740
mov byte [ebp - 4], 1
cmp dword [ebp - 0x42c], 8
jb 0x40c0f9
mov edx, dword [ebp - 0x440]
push edx
call fcn.0041866f
add esp, 4
jmp 0x40c0f9
mov esi, 8
cmp dword [ebp - 0x42c], esi
jb 0x40c2f4
mov edx, dword [ebp - 0x440]
push edx
call fcn.0041866f
add esp, 4
xor eax, eax
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], 0
mov word [ebp - 0x440], ax
cmp dword [ebp - 0x448], esi
jb 0x40c328
mov ecx, dword [ebp - 0x45c]
push ecx
call fcn.0041866f
add esp, 4
mov eax, 0xfffffffe
jmp 0x40c34a
cmp dword [ebp - 0x448], 8
jb 0x40c347
mov eax, dword [ebp - 0x45c]
push eax
call fcn.0041866f
add esp, 4
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004180c9
mov esp, ebp
pop ebp
ret 4