Function at 0x49dcc8
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x49dcd0
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49df4a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x390]
call fcn.004044dc
call fcn.004097fc
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00404214
mov eax, dword [ebp - 0x10]
mov edx, 0x49df60
call fcn.00404428
je 0x49ddbd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x390]
call fcn.004044dc
call fcn.004097fc
mov edx, eax
lea eax, [ebp - 0x14]
call fcn.00404214
mov eax, dword [ebp - 0x14]
mov edx, 0x49df70
call fcn.00404428
je 0x49ddbd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x390]
call fcn.00408dbc
test al, al
jne 0x49ddbd
push 0x10
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0045dc5c
mov eax, dword [ebp - 0x18]
call fcn.004044dc
push eax
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
mov eax, 0x49bd14
call fcn.00405da8
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x390]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea edx, [ebp - 0x28]
xor ecx, ecx
pop eax
call fcn.00409dcc
mov eax, dword [ebp - 0x1c]
call fcn.004044dc
push eax
mov eax, dword [ebp - 4]
call fcn.00466428
push eax
call sub.user32.dll_MessageBoxA_1
jmp 0x49dee5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x394]
call fcn.00408dbc
test al, al
jne 0x49de31
push 0x10
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.0045dc5c
mov eax, dword [ebp - 0x2c]
call fcn.004044dc
push eax
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x34]
mov eax, 0x49bd14
call fcn.00405da8
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x394]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea edx, [ebp - 0x28]
xor ecx, ecx
pop eax
call fcn.00409dcc
mov eax, dword [ebp - 0x30]
call fcn.004044dc
push eax
mov eax, dword [ebp - 4]
call fcn.00466428
push eax
call sub.user32.dll_MessageBoxA_1
jmp 0x49dee5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x398]
call fcn.0048641c
test al, al
je 0x49dea5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x398]
call fcn.004044dc
push eax
call sub.kernel32.dll_GetFileAttributesA
test eax, eax
jns 0x49de60
call fcn.004031c4
mov dword [ebp - 0xc], eax
test byte [ebp - 0xc], 1
je 0x49dee1
push 0x10
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0045dc5c
mov eax, dword [ebp - 0x38]
call fcn.004044dc
push eax
lea edx, [ebp - 0x3c]
mov eax, 0x49bd24
call fcn.00405da8
mov eax, dword [ebp - 0x3c]
call fcn.004044dc
push eax
mov eax, dword [ebp - 4]
call fcn.00466428
push eax
call sub.user32.dll_MessageBoxA_1
jmp 0x49dee5
push 0x10
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 4]
call fcn.0045dc5c
mov eax, dword [ebp - 0x40]
call fcn.004044dc
push eax
lea edx, [ebp - 0x44]
mov eax, 0x49bd1c
call fcn.00405da8
mov eax, dword [ebp - 0x44]
call fcn.004044dc
push eax
mov eax, dword [ebp - 4]
call fcn.00466428
push eax
call sub.user32.dll_MessageBoxA_1
jmp 0x49dee5
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49df51
lea eax, [ebp - 0x44]
call fcn.0040401c
lea eax, [ebp - 0x40]
call fcn.0040401c
lea eax, [ebp - 0x3c]
call fcn.0040401c
lea eax, [ebp - 0x38]
call fcn.0040401c
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00404040
lea eax, [ebp - 0x2c]
call fcn.0040401c
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404040
lea eax, [ebp - 0x18]
call fcn.0040401c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404040
ret