Function at 0x409740
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x493519
mov eax, dword fs:[0]
push eax
sub esp, 0x8f0
mov eax, dword [0x4aeea0]
xor eax, esp
mov dword [esp + 0x8e8], eax
push ebx
push esi
push edi
mov eax, dword [0x4aeea0]
xor eax, esp
push eax
lea eax, [esp + 0x900]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x48], edi
push 1
call fcn.00441f39
add esp, 4
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x90c], 0
call fcn.004049e0
mov dword [esp + 0x90c], 0xffffffff
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x4c], eax
test ecx, ecx
je 0x4097d4
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4097d4
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
push 0
push 2
lea edx, [esp + 0x70]
mov ecx, edi
mov dword [esp + 0x910], 1
call fcn.0040d740
mov ebx, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
add esp, 8
test al, al
je 0x409c77
mov dword [esp + 0x14], esi
cmp ebx, esi
je 0x409c77
push 0x4a4828
mov edx, edi
lea ecx, [esp + 0x54]
call fcn.00409df0
add esp, 4
push ebx
mov edx, eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x90c], 2
call fcn.00409d70
add esp, 4
mov byte [esp + 0x908], 4
cmp dword [esp + 0x64], 8
jb 0x40986a
push dword [esp + 0x50]
call fcn.0045b2a0
add esp, 4
xor eax, eax
push 1
push 0x4a4828
lea ecx, [esp + 0x38]
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], eax
mov word [esp + 0x38], ax
call fcn.00403710
mov byte [esp + 0x908], 5
push 2
xor eax, eax
push 0x4a4864
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
call fcn.00403710
lea eax, [esp + 0x30]
push eax
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x78]
mov byte [esp + 0x90c], 6
call fcn.0040e6a0
add esp, 4
cmp dword [esp + 0x2c], 8
jb 0x409901
push dword [esp + 0x18]
call fcn.0045b2a0
add esp, 4
xor eax, eax
mov byte [esp + 0x908], 4
cmp dword [esp + 0x44], 8
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
jb 0x409933
push dword [esp + 0x30]
call fcn.0045b2a0
add esp, 4
cmp dword [esp + 0x88], 8
lea ecx, [esp + 0xbc]
lea eax, [esp + 0x74]
cmovae eax, dword [esp + 0x74]
push ecx
push eax
call fcn.0045c20c
add esp, 8
test eax, eax
je 0x409960
or edi, 0xffffffff
or esi, edi
jmp 0x40996e
mov edi, dword [esp + 0xd4]
mov esi, dword [esp + 0xd8]
cmp dword [esp + 0x88], 8
lea eax, [esp + 0x74]
cmovae eax, dword [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 2
jne 0x409c40
mov eax, edi
or eax, esi
je 0x409c40
test esi, esi
jg 0x409c40
jl 0x4099ae
cmp edi, 0xa00000
ja 0x409c40
cmp dword [esp + 0x88], 8
push 0x100
lea ecx, [esp + 0x6f8]
push ecx
push 0x100
lea ecx, [esp + 0x500]
push ecx
push 0x100
lea ecx, [esp + 0x308]
push ecx
push 0x100
lea ecx, [esp + 0x110]
lea eax, [esp + 0x90]
cmovae eax, dword [esp + 0x90]
push ecx
push eax
call fcn.0045cb0a
add esp, 0x24
lea eax, [esp + 0x6f4]
push eax
lea ecx, [esp + 0x90]
call fcn.004028f0
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x908], 7
cmp dword [esp + 0xa0], 8
mov eax, dword [esp + 0x9c]
mov edx, dword [ecx]
lea edi, [esp + 0x8c]
cmovae edi, dword [esp + 0x8c]
lea esi, [esp + 0x8c]
cmovae esi, dword [esp + 0x8c]
lea eax, [edi + eax*2]
push eax
push esi
call dword [edx + 0x24]
xor esi, esi
jmp 0x409a60
mov edx, dword [esi + 0x4b15d0]
cmp word [edx], 0
jne 0x409a70
xor ecx, ecx
jmp 0x409a84
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409a75
sub ecx, edi
sar ecx, 1
push ecx
push edx
push dword [esp + 0xa4]
push ecx
lea ecx, [esp + 0x9c]
call fcn.00404dd0
test eax, eax
jne 0x409bfb
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], eax
mov word [esp + 0x18], ax
cmp word [esp + 0xf4], ax
je 0x409ad6
lea eax, [esp + 0xf4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409ac7
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x20]
call fcn.00403710
lea eax, [esp + 0x2f4]
push eax
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x34]
mov byte [esp + 0x90c], 8
call fcn.00409ee0
add esp, 4
lea ecx, [esp + 0x4f4]
push ecx
mov edx, eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x90c], 9
call fcn.00409ee0
add esp, 4
push str..exe
mov edx, eax
lea ecx, [esp + 0xa8]
mov byte [esp + 0x90c], 0xa
call fcn.00409ee0
add esp, 4
cmp dword [esp + 0x64], 8
jb 0x409b57
push dword [esp + 0x50]
call fcn.0045b2a0
add esp, 4
xor eax, eax
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
cmp dword [esp + 0x44], 8
jb 0x409b81
push dword [esp + 0x30]
call fcn.0045b2a0
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
mov byte [esp + 0x908], 0xe
cmp dword [esp + 0x2c], 8
jb 0x409bb3
push dword [esp + 0x18]
call fcn.0045b2a0
add esp, 4
xor eax, eax
lea edx, [esp + 0xa4]
lea ecx, [esp + 0x74]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.00409ce0
mov byte [esp + 0x908], 7
cmp dword [esp + 0xb8], 8
jb 0x409bfb
push dword [esp + 0xa4]
call fcn.0045b2a0
add esp, 4
add esi, 8
cmp esi, 0x58
jb 0x409a60
cmp dword [esp + 0xa0], 8
jb 0x409c20
push dword [esp + 0x8c]
call fcn.0045b2a0
add esp, 4
xor eax, eax
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], 0
mov word [esp + 0x8c], ax
mov byte [esp + 0x908], 1
cmp dword [esp + 0x88], 8
jb 0x409c5e
push dword [esp + 0x74]
call fcn.0045b2a0
add esp, 4
mov edi, dword [esp + 0x48]
add ebx, 0x18
cmp ebx, dword [esp + 0x14]
jne 0x409825
mov esi, dword [esp + 0x6c]
mov ebx, dword [esp + 0x68]
test ebx, ebx
je 0x409cb7
cmp ebx, esi
je 0x409cae
nop
cmp dword [ebx + 0x14], 8
jb 0x409c90
push dword [ebx]
call fcn.0045b2a0
add esp, 4
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
add ebx, 0x18
cmp ebx, esi
jne 0x409c80
mov ebx, dword [esp + 0x68]
push ebx
call fcn.0045b2a0
add esp, 4
mov ecx, dword [esp + 0x900]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8e8]
xor ecx, esp
call fcn.0045a8cf
mov esp, ebp
pop ebp
ret