Function at 0x5a1570
Capabilities:
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x60b3c6
push eax
mov eax, dword [0x6a1f58]
mov dword fs:[0], esp
sub esp, 0xd28
push ebx
push ebp
push esi
mov esi, dword [esp + 0xd44]
xor ebx, ebx
push edi
cmp eax, ebx
push esi
je 0x5a1cce
mov ecx, dword [esp + 0xd50]
call fcn.00401f50
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x22c]
push esi
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esp + 0x634]
rep stosd dword es:[edi], eax
mov byte [esp + 0x17], bl
call fcn.005c2f1a
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x5a162c
cmp word [esi + edi*2 - 2], 0x5c
je 0x5a162c
lea eax, [esp + 0x22c]
lea ecx, [esp + 0x630]
push eax
lea edx, [esp + 0xb3c]
push ecx
lea eax, [esp + 0x12c]
push edx
push eax
push esi
call fcn.005c3cd8
lea ecx, [esp + 0x844]
push esi
push ecx
call fcn.005c30ba
add esp, 0x1c
jmp 0x5a1641
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x830]
mov byte [esp + 0x13], 1
rep stosd dword es:[edi], eax
lea edx, [esp + 0x22c]
lea ecx, [esp + 0x70]
push edx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x7c], ebx
mov word [esp + 0x78], bx
call fcn.00401f50
lea eax, [esp + 0x22c]
mov dword [esp + 0xd40], ebx
push eax
call fcn.005c2f1a
add esp, 4
cmp eax, 1
jbe 0x5a1693
lea ecx, [esp + 0x22e]
lea edx, [esp + 0x22c]
push ecx
push edx
call fcn.005c30ba
add esp, 8
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x8c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x830]
mov dword [esp + 0x8c], 0x4c
mov dword [esp + 0xa8], eax
mov al, byte [esp + 0x13]
cmp al, bl
mov dword [esp + 0x90], ebx
mov dword [esp + 0xac], 0x208
mov dword [esp + 0xa4], 1
je 0x5a16ea
mov dword [esp + 0xb8], esi
jmp 0x5a1703
lea ecx, [esp + 0x630]
mov dword [esp + 0xb4], 0x200
mov dword [esp + 0xb0], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov word [esp + 0x20], bx
mov edx, dword [0x6cdb90]
push ebx
push edx
lea ecx, [esp + 0x60]
mov byte [esp + 0xd48], 1
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], ebx
mov word [esp + 0x64], bx
call fcn.00402880
mov eax, dword [0x6cdb94]
push ebx
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0xd48], 2
mov dword [esp + 0x84], ebx
mov dword [esp + 0x8c], ebx
mov word [esp + 0x88], bx
call fcn.00402880
lea ecx, [esp + 0x22c]
mov byte [esp + 0xd40], 3
push ecx
call fcn.005c2f1a
add esp, 4
test eax, eax
je 0x5a196f
mov edi, dword [esp + 0x58]
cmp edi, ebx
jne 0x5a1793
lea edi, [esp + 0x5c]
mov esi, dword [esp + 0x7c]
cmp esi, ebx
jne 0x5a17a2
lea esi, [esp + 0x80]
mov edx, str._s__s._s_s__._.
test edx, edx
je 0x5a1a52
lea eax, [esp + 0x22c]
test eax, eax
je 0x5a1a52
cmp esi, ebx
je 0x5a1a52
cmp edi, ebx
je 0x5a1a52
lea ecx, [esp + 0x22c]
push ecx
lea ecx, [esp + 0x44]
call fcn.0040d680
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd44], 4
call fcn.0040d680
lea edx, [esp + 0x22c]
lea ecx, [esp + 0x34]
push edx
mov byte [esp + 0xd44], 5
call fcn.0040d680
push edi
lea ecx, [esp + 0x68]
mov byte [esp + 0xd44], 6
call fcn.0040d680
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd40], 7
call fcn.00401070
push str._s__s._s_s__._.
lea ecx, [esp + 0x50]
call fcn.00401ec0
mov eax, dword [esp + 0x40]
mov byte [esp + 0xd40], 8
cmp eax, ebx
mov edi, eax
jne 0x5a1851
lea edi, [esp + 0x44]
mov esi, dword [esp + 0x54]
lea ecx, [esp + 0x64]
call fcn.00401f40
push eax
call fcn.005c2f1a
add esp, 4
lea ecx, [esp + 0x34]
mov ebp, eax
call fcn.00401f40
push eax
call fcn.005c2f1a
add esp, 4
lea ecx, [esp + 0x28]
add ebp, eax
call fcn.00401f40
push eax
call fcn.005c2f1a
mov dword [esp + 0x1c], ebp
mov ebp, eax
push edi
add ebp, esi
call fcn.005c2f1a
mov ecx, dword [esp + 0x20]
add ebp, ecx
lea esi, [eax + ebp + 5]
lea ebp, [esi + esi]
push ebp
call fcn.005db95d
mov edi, eax
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x1c], edi
je 0x5a191a
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x64]
call fcn.00401f40
push eax
lea ecx, [esp + 0x38]
call fcn.00401f40
push eax
lea ecx, [esp + 0x30]
call fcn.00401f40
push eax
lea ecx, [esp + 0x4c]
call fcn.00401f40
push eax
lea ecx, [esp + 0x5c]
call fcn.00401f40
push eax
mov eax, dword [esp + 0x30]
push esi
push eax
call fcn.005c2eaa
mov ecx, dword [esp + 0x38]
push ecx
call fcn.005c2f1a
add esp, 0x20
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0xd40], 7
call fcn.00401070
lea ecx, [esp + 0x64]
mov byte [esp + 0xd40], 6
call fcn.00401070
lea ecx, [esp + 0x34]
mov byte [esp + 0xd40], 5
call fcn.00401070
lea ecx, [esp + 0x28]
mov byte [esp + 0xd40], 4
call fcn.00401070
mov byte [esp + 0xd40], 3
lea ecx, [esp + 0x40]
jmp 0x5a1a4d
mov eax, dword [esp + 0x58]
cmp eax, ebx
jne 0x5a197b
lea eax, [esp + 0x5c]
mov edx, str._s__._.
test edx, edx
je 0x5a1a52
cmp eax, ebx
je 0x5a1a52
push eax
lea ecx, [esp + 0x38]
call fcn.0040d680
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd40], 9
call fcn.00401070
push str._s__._.
lea ecx, [esp + 0x2c]
call fcn.00401ec0
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x34]
mov byte [esp + 0xd40], 0xa
call fcn.00401f40
push eax
call fcn.005c2f1a
lea esi, [eax + esi + 2]
lea ebp, [esi + esi]
push ebp
call fcn.005db95d
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x1c], edi
je 0x5a1a30
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x34]
call fcn.00401f40
push eax
lea ecx, [esp + 0x2c]
call fcn.00401f40
push eax
mov eax, dword [esp + 0x24]
push esi
push eax
call fcn.005c2eaa
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.005c2f1a
add esp, 0x14
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xd40], 9
call fcn.00401070
mov byte [esp + 0xd40], 3
lea ecx, [esp + 0x34]
call fcn.00401070
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x5a1a5e
lea eax, [esp + 0x20]
push 0x7c
push eax
call fcn.005c338f
add esp, 8
cmp eax, ebx
je 0x5a1a82
mov word [eax], bx
add eax, 2
push 0x7c
push eax
call fcn.005c338f
add esp, 8
cmp eax, ebx
jne 0x5a1a6d
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x5a1a93
mov dword [esp + 0x98], eax
jmp 0x5a1a9e
lea edx, [esp + 0x20]
mov dword [esp + 0x98], edx
lea ecx, [esp + 0x8c]
lea eax, [esp + 0x22c]
push ecx
mov dword [esp + 0xcc], eax
mov dword [esp + 0xc4], 0x802
call sub.comdlg32.dll_GetSaveFileNameW
cmp eax, 1
je 0x5a1b19
lea ecx, [esp + 0x7c]
mov byte [esp + 0xd40], 2
call fcn.00401070
lea ecx, [esp + 0x58]
mov byte [esp + 0xd40], 1
call fcn.00401070
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd40], bl
call fcn.00401070
lea ecx, [esp + 0x70]
mov dword [esp + 0xd40], 0xffffffff
call fcn.00401070
mov eax, 2
jmp 0x5a203a
mov edx, dword [esp + 0xa8]
push 0x2e
push edx
call fcn.005c2e6a
add esp, 8
cmp eax, ebx
je 0x5a1b48
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xd4c]
push eax
call fcn.00401f50
jmp 0x5a1c83
mov esi, dword [esp + 0x70]
cmp esi, ebx
jne 0x5a1b54
lea esi, [esp + 0x74]
mov edi, dword [esp + 0xa8]
mov ecx, 0x69e048
test ecx, ecx
je 0x5a1c83
cmp edi, ebx
je 0x5a1c83
cmp esi, ebx
je 0x5a1c83
push ecx
lea ecx, [esp + 0x68]
call fcn.00401ec0
push edi
lea ecx, [esp + 0x38]
mov byte [esp + 0xd44], 0xb
call fcn.0040d680
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd44], 0xc
call fcn.0040d680
mov ecx, dword [esp + 0xd4c]
mov byte [esp + 0xd40], 0xd
call fcn.00401070
mov esi, dword [esp + 0x6c]
lea ecx, [esp + 0x28]
call fcn.00401f40
push eax
call fcn.005c2f1a
add esp, 4
lea ecx, [esp + 0x34]
mov edi, eax
call fcn.00401f40
push eax
call fcn.005c2f1a
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005db95d
mov edx, dword [esp + 0xd54]
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [edx], edi
je 0x5a1c50
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x28]
call fcn.00401f40
push eax
lea ecx, [esp + 0x38]
call fcn.00401f40
push eax
lea ecx, [esp + 0x6c]
call fcn.00401f40
push eax
push esi
mov esi, dword [esp + 0xd5c]
mov eax, dword [esi]
push eax
call fcn.005c2eaa
mov ecx, dword [esi]
push ecx
call fcn.005c2f1a
add esp, 0x18
mov dword [esi + 8], eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xd40], 0xc
call fcn.00401070
lea ecx, [esp + 0x34]
mov byte [esp + 0xd40], 0xb
call fcn.00401070
lea ecx, [esp + 0x64]
mov byte [esp + 0xd40], 3
call fcn.00401070
lea ecx, [esp + 0x7c]
mov byte [esp + 0xd40], 2
call fcn.00401070
lea ecx, [esp + 0x58]
mov byte [esp + 0xd40], 1
call fcn.00401070
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd40], bl
call fcn.00401070
lea ecx, [esp + 0x70]
mov dword [esp + 0xd40], 0xffffffff
call fcn.00401070
jmp 0x5a2035
mov ebp, dword [esp + 0xd50]
mov ecx, ebp
call fcn.00401f50
push esi
lea ecx, [esp + 0x1c]
call fcn.005df616
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x12c]
lea edx, [esp + 0x12c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x42c]
push edx
lea ecx, [esp + 0xa3c]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x90]
push ecx
push edx
push eax
mov dword [esp + 0xd54], 0xe
call fcn.005c397a
add esp, 0x14
lea ecx, [esp + 0x12c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], ebx
push ebx
push ecx
lea ecx, [esp + 0x48]
mov word [esp + 0x4c], bx
call fcn.00402880
lea edi, [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jbe 0x5a1d8c
lea edi, [esp + 0x12d]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x12c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0xd8]
lea edx, [esp + 0x52c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
mov dword [esp + 0xd8], 0x4c
mov dword [esp + 0xdc], ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x42c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [0x6c826c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x52c]
mov dword [esp + 0xf8], 0x104
mov dword [esp + 0xf4], ecx
mov dword [esp + 0xf0], 1
mov dword [esp + 0xfc], edx
mov dword [esp + pe_nt_image_headers32], 0x100
mov dword [esp + 0x14], eax
lea edi, [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0xd40], 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5a1e66
mov ecx, dword [0x6cdb90]
mov eax, dword [0x6cdb94]
lea edx, [esp + 0x12c]
push ecx
push edx
lea ecx, [esp + 0x134]
push eax
push ecx
lea edx, [esp + 0x24]
push str._s__s._s_s__._.
push edx
call fcn.005d838b
add esp, 0x18
jmp 0x5a1e7e
mov eax, dword [0x6cdb90]
lea ecx, [esp + 0x14]
push eax
push str._s__._.
push ecx
call fcn.005d838b
add esp, 0xc
mov edx, dword [esp + 0x14]
push 0x7c
push edx
call fcn.005c2f50
add esp, 8
cmp eax, ebx
je 0x5a1ea3
mov byte [eax], bl
inc eax
push 0x7c
push eax
call fcn.005c2f50
add esp, 8
cmp eax, ebx
jne 0x5a1e91
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xd8]
lea ecx, [esp + 0x12c]
push edx
mov dword [esp + 0xe8], eax
mov dword [esp + 0x118], ecx
mov dword [esp + 0x110], 0x802
call sub.comdlg32.dll_GetSaveFileNameA
cmp eax, 1
je 0x5a1f19
lea ecx, [esp + 0x14]
mov byte [esp + 0xd40], 0xf
call fcn.005df556
lea ecx, [esp + 0x40]
mov byte [esp + 0xd40], 0xe
call fcn.00401070
lea ecx, [esp + 0x18]
mov dword [esp + 0xd40], 0xffffffff
call fcn.005df556
mov eax, 2
jmp 0x5a203a
mov eax, dword [esp + 0xf4]
push ebx
push eax
mov ecx, ebp
call fcn.00402880
mov ecx, dword [esp + 0xf4]
push 0x2e
push ecx
call fcn.005c3ed0
add esp, 8
cmp eax, ebx
jne 0x5a1fff
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x4c]
push edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], ebx
mov word [esp + 0x54], bx
call fcn.00401f50
mov edi, dword [esp + 0x4c]
mov byte [esp + 0xd40], 0x11
cmp edi, ebx
jne 0x5a1f76
lea edi, [esp + 0x50]
cmp edi, ebx
je 0x5a1fee
push edi
call fcn.005c2f1a
add esp, 4
test eax, eax
je 0x5a1fee
mov eax, dword [ebp]
cmp eax, ebx
je 0x5a1f97
push eax
call fcn.005c2f1a
add esp, 4
mov esi, eax
jmp 0x5a1f99
xor esi, esi
push edi
call fcn.005c2f1a
add eax, esi
lea eax, [eax + eax + 2]
push eax
call fcn.005db95d
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x5a1fee
mov eax, dword [ebp]
cmp eax, ebx
je 0x5a1fce
push eax
push esi
call fcn.005c30ba
push edi
push esi
call fcn.005c3090
add esp, 0x10
jmp 0x5a1fd8
push edi
push esi
call fcn.005c30ba
add esp, 8
mov ecx, ebp
call fcn.00401070
push esi
mov dword [ebp], esi
call fcn.005c2f1a
add esp, 4
mov dword [ebp + 8], eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0xd40], 0x10
call fcn.00401070
lea ecx, [esp + 0x14]
mov byte [esp + 0xd40], 0xf
call fcn.005df556
lea ecx, [esp + 0x40]
mov byte [esp + 0xd40], 0xe
call fcn.00401070
lea ecx, [esp + 0x18]
mov dword [esp + 0xd40], 0xffffffff
call fcn.005df556
mov eax, 1
mov ecx, dword [esp + 0xd38]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd34
ret 8