Function at 0x4036a0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415a25
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x41c140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edx, dword [ecx + 0x10]
mov eax, 0x7ffffffe
sub eax, edx
mov byte [ebp - 4], 1
cmp eax, 1
jb 0x403977
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x403741
mov eax, dword [ecx]
push 1
push 0x417644
push edx
push eax
push ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
call fcn.004032e0
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call fcn.00405890
mov ecx, dword [ebp - 0x2c]
add esp, 8
mov byte [ebp - 4], 1
cmp ecx, 8
jb 0x4037b2
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4037a8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4037a8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004149eb
add esp, 8
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
push esi
call fcn.004050e0
add esp, 0xc
test al, al
jne 0x4037cd
xor esi, esi
jmp 0x403949
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x44], ebx
cmp edi, ebx
je 0x403924
nop
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], eax
cmp esi, eax
je 0x4038f5
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x4037fb
mov edx, dword [esi]
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403800
sub eax, ebx
mov ecx, edi
mov ebx, dword [edi + 0x10]
sar eax, 1
cmp dword [edi + 0x14], 8
jb 0x40381c
mov ecx, dword [edi]
push eax
push edx
push 0
push ebx
push ecx
call fcn.00403050
add esp, 0x14
cmp eax, 0xffffffff
je 0x4038e6
mov edx, dword [ebp - 0x48]
mov eax, 0x7ffffffe
mov edx, dword [edx + 0x10]
sub eax, edx
cmp eax, ebx
jb 0x403977
mov eax, dword [ebp - 0x48]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x403855
mov ecx, dword [eax]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40385f
mov eax, dword [edi]
push ebx
push eax
push edx
push ecx
push dword [ebp - 0x48]
lea ecx, [ebp - 0x40]
push dword [ebp - 0x44]
call fcn.004032e0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
lea eax, [ebp - 0x40]
jne 0x40389f
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00404700
jmp 0x4038a5
push eax
call fcn.004046d0
mov ecx, dword [ebp - 0x2c]
add esp, 4
mov byte [ebp - 4], 1
cmp ecx, 8
jb 0x4038e6
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4038dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4037a2
push ecx
push edx
call fcn.004149eb
add esp, 8
add esi, 0x18
cmp esi, dword [ebp - 0x4c]
jne 0x4037f1
mov ebx, dword [ebp - 0x44]
add edi, 0x18
cmp edi, ebx
jne 0x4037e0
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
cmp edi, ebx
je 0x403924
nop word [eax + eax]
mov ecx, edi
call fcn.00401c30
add edi, 0x18
cmp edi, ebx
jne 0x403910
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
cmp esi, edi
je 0x403944
nop
mov ecx, esi
call fcn.00401c30
add esi, 0x18
cmp esi, edi
jne 0x403930
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov esi, 1
lea ecx, [ebp - 0x1c]
call fcn.00403430
lea ecx, [ebp - 0x28]
call fcn.00403430
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004149f9
mov esp, ebp
pop ebp
ret
call fcn.00401c90
int3