Function at 0x409e00
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4eb953
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
mov eax, dword [edi + 0x70]
push eax
call fcn.0044fec0
lea ecx, [esp + 0x10]
mov dword [esp + 0x280], 0
call fcn.004543d0
lea ecx, [esp + 0x10]
call fcn.004540b0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409e71
lea ecx, [esp + 0x10]
mov dword [esp + 0x280], 0xffffffff
call fcn.00450660
xor eax, eax
jmp 0x40a237
lea ecx, [esp + 0x10]
call fcn.00451990
mov ebp, dword [esp + 0x288]
push 0x52cb30
mov ecx, ebp
call fcn.004508e0
mov esi, dword [esp + 0x28c]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.004507f0
mov eax, dword [edi + 0x70]
lea ecx, [esp + 0x1c]
push eax
call fcn.0044fec0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x280], 1
call fcn.00451990
push str.open_safe_disk
lea ecx, [esp + 0x20]
call fcn.00451840
or ebx, 0xffffffff
cmp eax, ebx
je 0x409f09
push 0x52cb30
push str.open_safe_disk
mov ecx, esi
call fcn.004525a0
mov ecx, dword [esi]
mov edx, dword [edi + 0x70]
push ecx
push edx
push 0x1cd
push str._CSDViewerApp::ParseCmdLine__Line:_d_Cmd__s__FileName__s_
push str.SDSystem
push 1
push 0x52e6a4
call fcn.0042b6d0
add esp, 0x1c
push str._process:
lea ecx, [esp + 0x14]
call fcn.00451840
mov edi, eax
cmp edi, ebx
je 0x40a04b
lea eax, [esp + 0x18]
push edi
push eax
lea ecx, [esp + 0x18]
call fcn.00452da0
push eax
mov ecx, esi
mov byte [esp + 0x284], 2
call fcn.004507f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x280], 1
call fcn.00450660
push str._process:
call fcn.00437501
add esp, 4
add eax, edi
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00452950
mov bl, 3
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], bl
call fcn.004543d0
mov edx, dword [esp + 0x14]
mov ax, word [edx]
cmp ax, 0x22
jne 0x40a013
push 1
push 0x22
lea ecx, [esp + 0x1c]
call fcn.004517a0
cmp eax, 0xffffffff
je 0x40a00c
lea edi, [eax + 1]
lea eax, [esp + 0x18]
push edi
push eax
lea ecx, [esp + 0x1c]
call fcn.00452da0
push eax
mov ecx, ebp
mov byte [esp + 0x284], 4
call fcn.004507f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x280], bl
call fcn.00450660
lea ecx, [esp + 0x18]
push edi
push ecx
lea ecx, [esp + 0x1c]
call fcn.00452950
mov ecx, dword [esp + 0x290]
push eax
mov byte [esp + 0x284], 5
call fcn.004507f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x280], bl
call fcn.00450660
jmp 0x40a01f
lea edx, [esp + 0x14]
push edx
jmp 0x40a018
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
call fcn.004507f0
push 0x518fc8
mov ecx, ebp
call fcn.004541a0
push 0x518fc8
mov ecx, ebp
call fcn.00453eb0
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 1
call fcn.00450660
or ebx, 0xffffffff
push 0x518fc8
mov ecx, esi
call fcn.004541a0
push 0x518fc8
mov ecx, esi
call fcn.00453eb0
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40a180
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, ebx
je 0x40a1ec
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], 0
rep stosd dword es:[edi], eax
mov eax, dword [esi]
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x24], ebx
je 0x40a17d
push 0x5c
mov ecx, esi
call fcn.00451810
cmp eax, 0xffffffff
je 0x40a176
lea edi, [eax + 1]
lea edx, [esp + 0x14]
push edi
push edx
mov ecx, esi
call fcn.00452950
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x54]
push eax
push ecx
mov byte [esp + 0x288], 6
call fcn.00437916
add esp, 8
test eax, eax
jne 0x40a165
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x54]
push edx
push eax
call fcn.00437df4
add esp, 8
test eax, eax
je 0x40a165
lea ecx, [esp + 0x18]
push edi
push ecx
mov ecx, esi
call fcn.00452da0
lea edx, [esp + 0x54]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
mov bl, 7
push eax
push ecx
mov byte [esp + 0x28c], bl
call fcn.00450dd0
push eax
mov ecx, esi
mov byte [esp + 0x284], 8
call fcn.004507f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x280], bl
call fcn.00450660
lea ecx, [esp + 0x18]
mov byte [esp + 0x280], 6
call fcn.00450660
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 1
call fcn.00450660
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
or ebx, 0xffffffff
mov eax, dword [ebp]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40a1d9
push str.openway
push eax
call fcn.00437916
add esp, 8
test eax, eax
je 0x40a1aa
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, ebx
jne 0x40a1d9
mov ecx, ebp
call fcn.004503d0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x280], 0
call fcn.00450660
lea ecx, [esp + 0x10]
mov dword [esp + 0x280], ebx
call fcn.00450660
mov eax, 2
jmp 0x40a237
mov edx, dword [esi]
mov eax, dword [edx - 8]
test eax, eax
jne 0x40a211
mov eax, dword [ebp]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40a211
lea ecx, [esp + 0x1c]
mov byte [esp + 0x280], 0
call fcn.00450660
lea ecx, [esp + 0x10]
mov dword [esp + 0x280], ebx
call fcn.00450660
xor eax, eax
jmp 0x40a237
lea ecx, [esp + 0x1c]
mov byte [esp + 0x280], 0
call fcn.00450660
lea ecx, [esp + 0x10]
mov dword [esp + 0x280], ebx
call fcn.00450660
mov eax, 1
mov ecx, dword [esp + 0x278]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x274
ret 0xc