Function at 0x409938
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x409941
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x409be2
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00405c00
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x40e690]
call fcn.00403684
mov ecx, eax
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.004038e4
mov eax, dword [ebp - 0x10]
push eax
lea edx, [ebp - 0x14]
mov eax, dword [0x40e690]
call fcn.00405c00
mov edx, dword [ebp - 0x14]
pop eax
call fcn.004037d0
je 0x4099bd
mov ecx, 0x193
mov dl, 1
mov eax, dword [0x406db4]
call fcn.004098d8
mov ebx, eax
jmp 0x409bc7
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x40e690]
call fcn.00403684
mov ecx, eax
inc ecx
add ecx, 7
inc ecx
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.004038e4
mov eax, dword [ebp - 0x18]
push eax
push dword [0x40e690]
push 0x409bfc
push 0x409c08
push 0x409bfc
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00403744
mov edx, dword [ebp - 0x1c]
pop eax
call fcn.004037d0
jne 0x409a28
mov ecx, 0x193
mov dl, 1
mov eax, dword [0x406db4]
call fcn.004098d8
mov ebx, eax
jmp 0x409bc7
mov eax, esi
call fcn.00403884
push eax
call sub.kernel32.dll_GetFileAttributesA
test al, 0x10
jne 0x409a41
test al, 2
jne 0x409a41
test al, 4
je 0x409a59
mov ecx, 0x193
mov dl, 1
mov eax, dword [0x406db4]
call fcn.004098d8
mov ebx, eax
jmp 0x409bc7
mov dx, word [0x409c10]
mov eax, esi
call fcn.004051c8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x409ac0
push 0x409c1c
push esi
push 0x409c30
push dword [edi + 0x14]
push 0x409c48
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x24]
call fcn.004053d8
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, 6
call fcn.00403744
mov eax, dword [ebp - 0x20]
call fcn.004097e4
mov ecx, 0x194
mov dl, 1
mov eax, dword [0x406db4]
call fcn.004098d8
mov ebx, eax
jmp 0x409bc7
lea edx, [ebx + 8]
mov eax, dword [ebp - 8]
call fcn.00405110
test al, al
jne 0x409ae7
mov ecx, 0x194
mov dl, 1
mov eax, dword [0x406db4]
call fcn.004098d8
mov ebx, eax
jmp 0x409bc7
lea edx, [ebp - 0x2c]
mov eax, esi
call fcn.00405b40
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
mov edx, 2
call fcn.00405050
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0xc]
call fcn.00405c00
cmp dword [ebp - 0xc], 0
je 0x409b4a
lea ecx, [ebp - 4]
lea edx, [ebp - 0xc]
mov eax, dword [0x40e68c]
mov esi, dword [eax]
call dword [esi + 0x20]
test al, al
jne 0x409b30
lea eax, [ebp - 0xc]
call fcn.00403500
jmp 0x409b4a
lea eax, [ebp - 0xc]
mov edx, dword [0x40e68c]
mov edx, dword [edx + 0x2c]
mov ecx, dword [ebp - 4]
mov edx, dword [edx + ecx*4]
mov edx, dword [edx + 4]
call fcn.00403598
cmp dword [ebp - 0xc], 0
jne 0x409b5d
lea eax, [ebp - 0xc]
mov edx, 0x409c5c
call fcn.00403598
mov dl, 1
mov eax, dword [0x40739c]
call fcn.00402b2c
mov esi, eax
mov dword [ebx + 0x6c], esi
lea eax, [esi + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00403554
mov eax, dword [ebx + 0x6c]
mov edx, dword [ebx + 0xc]
mov dword [eax + 0x40], edx
lea edx, [ebp - 0x30]
mov eax, dword [ebx + 0x10]
call fcn.0040759c
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx + 0x6c]
add eax, 0x30
call fcn.00403554
call fcn.004047e0
lea edx, [ebp - 0x34]
call fcn.0040759c
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x64]
add eax, 0xc
call fcn.00403554
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x406ce8]
call fcn.00409914
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409be9
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00403524
ret