Function at 0x5e5500
Capabilities:
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x654836
push eax
mov eax, dword [0x6cdafc]
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 0x5e5d13
mov ecx, dword [esp + 0xd50]
call fcn.00401f20
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.00609a4e
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x5e55bc
cmp word [esi + edi*2 - 2], 0x5c
je 0x5e55bc
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.0060a943
lea ecx, [esp + 0x844]
push esi
push ecx
call fcn.00609a95
add esp, 0x1c
jmp 0x5e55d1
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 + 0x64]
push edx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x70], ebx
mov word [esp + 0x6c], bx
call fcn.00401f20
lea eax, [esp + 0x22c]
mov dword [esp + 0xd40], ebx
push eax
call fcn.00609a4e
add esp, 4
cmp eax, 1
jbe 0x5e5623
lea ecx, [esp + 0x22e]
lea edx, [esp + 0x22c]
push ecx
push edx
call fcn.00609a95
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 0x5e567a
mov dword [esp + 0xb8], esi
jmp 0x5e5693
lea ecx, [esp + 0x630]
mov dword [esp + 0xb4], 0x200
mov dword [esp + 0xb0], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov word [esp + 0x2c], bx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
mov word [esp + 0x38], bx
mov edx, dword [0x6fca90]
mov esi, dword [0x6fda50]
lea ecx, [esp + 0x34]
mov byte [esp + 0xd40], 2
mov dword [esp + 0x14], edx
call fcn.00401070
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp esi, ebx
je 0x5e5721
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5e5721
mov edi, dword [esp + 0x14]
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
push edi
call ebp
cmp eax, ebx
mov dword [esp + 0x3c], eax
je 0x5e5721
lea eax, [eax + eax + 2]
push eax
call fcn.00622acb
add esp, 4
cmp eax, ebx
mov dword [esp + 0x34], eax
je 0x5e5721
mov ecx, dword [esp + 0x3c]
push ecx
push eax
push 0xffffffffffffffff
push esi
push ebx
push edi
call ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], ebx
mov word [esp + 0x44], bx
mov edx, dword [0x6fca90]
mov esi, dword [0x6fda54]
lea ecx, [esp + 0x40]
mov byte [esp + 0xd40], 3
mov dword [esp + 0x14], edx
call fcn.00401070
cmp esi, ebx
je 0x5e579c
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5e579c
mov edi, dword [esp + 0x14]
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
push edi
call ebp
cmp eax, ebx
mov dword [esp + 0x48], eax
je 0x5e579c
lea eax, [eax + eax + 2]
push eax
call fcn.00622acb
add esp, 4
cmp eax, ebx
mov dword [esp + 0x40], eax
je 0x5e579c
mov ecx, dword [esp + 0x48]
push ecx
push eax
push 0xffffffffffffffff
push esi
push ebx
push edi
call ebp
mov dword [esp + 0x48], eax
lea edx, [esp + 0x22c]
push edx
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x5e599c
mov edi, dword [esp + 0x34]
cmp edi, ebx
jne 0x5e57c0
lea edi, [esp + 0x38]
mov esi, dword [esp + 0x40]
cmp esi, ebx
jne 0x5e57cc
lea esi, [esp + 0x44]
mov eax, str._s__s._s_s__._.
test eax, eax
je 0x5e5a89
lea ecx, [esp + 0x22c]
test ecx, ecx
je 0x5e5a89
cmp esi, ebx
je 0x5e5a89
cmp edi, ebx
je 0x5e5a89
lea edx, [esp + 0x22c]
lea ecx, [esp + 0x4c]
push edx
call fcn.00401ee0
push esi
lea ecx, [esp + 0x74]
mov byte [esp + 0xd44], 4
call fcn.00401ee0
lea eax, [esp + 0x22c]
lea ecx, [esp + 0x7c]
push eax
mov byte [esp + 0xd44], 5
call fcn.00401ee0
push edi
lea ecx, [esp + 0x5c]
mov byte [esp + 0xd44], 6
call fcn.00401ee0
lea ecx, [esp + 0x28]
mov byte [esp + 0xd40], 7
call fcn.00401070
lea ecx, [esp + 0x18]
call fcn.004027c0
push ebx
push str._s__s._s_s__._.
lea ecx, [esp + 0x20]
mov byte [esp + 0xd48], 8
call fcn.004027e0
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x58]
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
lea ecx, [esp + 0x7c]
mov edi, eax
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
lea ecx, [esp + 0x70]
add edi, eax
call fcn.00401f10
push eax
call fcn.00609a4e
mov ebp, eax
add esp, 4
lea ecx, [esp + 0x4c]
add ebp, esi
call fcn.00401f10
push eax
call fcn.00609a4e
add ebp, edi
lea esi, [eax + ebp + 5]
lea ebp, [esi + esi]
push ebp
call fcn.00622acb
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x28], edi
je 0x5e5947
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 + 0x58]
call fcn.00401f10
push eax
lea ecx, [esp + 0x80]
call fcn.00401f10
push eax
lea ecx, [esp + 0x78]
call fcn.00401f10
push eax
lea ecx, [esp + 0x58]
call fcn.00401f10
push eax
lea ecx, [esp + 0x28]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x3c]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00609a4e
add esp, 0x20
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xd40], 7
call fcn.00401070
lea ecx, [esp + 0x58]
mov byte [esp + 0xd40], 6
call fcn.00401070
lea ecx, [esp + 0x7c]
mov byte [esp + 0xd40], 5
call fcn.00401070
lea ecx, [esp + 0x70]
mov byte [esp + 0xd40], 4
call fcn.00401070
mov byte [esp + 0xd40], 3
lea ecx, [esp + 0x4c]
jmp 0x5e5a84
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x5e59a8
lea eax, [esp + 0x38]
mov edx, str._s__._.
test edx, edx
je 0x5e5a89
cmp eax, ebx
je 0x5e5a89
push eax
lea ecx, [esp + 0x50]
call fcn.00401ee0
lea ecx, [esp + 0x28]
mov byte [esp + 0xd40], 9
call fcn.00401070
lea ecx, [esp + 0x18]
call fcn.004027c0
push ebx
push str._s__._.
lea ecx, [esp + 0x20]
mov byte [esp + 0xd48], 0xa
call fcn.004027e0
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x4c]
call fcn.00401f10
push eax
call fcn.00609a4e
lea esi, [eax + esi + 2]
lea ebp, [esi + esi]
push ebp
call fcn.00622acb
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x28], edi
je 0x5e5a67
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 + 0x4c]
call fcn.00401f10
push eax
lea ecx, [esp + 0x1c]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x30]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xd40], 9
call fcn.00401070
mov byte [esp + 0xd40], 3
lea ecx, [esp + 0x4c]
call fcn.00401070
mov eax, dword [esp + 0x28]
cmp eax, ebx
jne 0x5e5a95
lea eax, [esp + 0x2c]
push 0x7c
push eax
call fcn.0060a17b
add esp, 8
cmp eax, ebx
je 0x5e5ab9
mov word [eax], bx
add eax, 2
push 0x7c
push eax
call fcn.0060a17b
add esp, 8
cmp eax, ebx
jne 0x5e5aa4
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x5e5aca
mov dword [esp + 0x98], eax
jmp 0x5e5ad5
lea edx, [esp + 0x2c]
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 0x5e5b50
lea ecx, [esp + 0x40]
mov byte [esp + 0xd40], 2
call fcn.00401070
lea ecx, [esp + 0x34]
mov byte [esp + 0xd40], 1
call fcn.00401070
lea ecx, [esp + 0x28]
mov byte [esp + 0xd40], bl
call fcn.00401070
lea ecx, [esp + 0x64]
mov dword [esp + 0xd40], 0xffffffff
call fcn.00401070
mov eax, 2
jmp 0x5e6008
mov edx, dword [esp + 0xa8]
push 0x2e
push edx
call fcn.00609ba3
add esp, 8
cmp eax, ebx
je 0x5e5b7f
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xd4c]
push eax
call fcn.00401f20
jmp 0x5e5cc8
mov esi, dword [esp + 0x64]
cmp esi, ebx
jne 0x5e5b8b
lea esi, [esp + 0x68]
mov edi, dword [esp + 0xa8]
mov ecx, 0x6c900c
test ecx, ecx
je 0x5e5cc8
cmp edi, ebx
je 0x5e5cc8
cmp esi, ebx
je 0x5e5cc8
lea ecx, [esp + 0x18]
call fcn.004027c0
push ebx
push 0x6c900c
lea ecx, [esp + 0x20]
mov byte [esp + 0xd48], 0xb
call fcn.004027e0
push edi
lea ecx, [esp + 0x74]
call fcn.00401ee0
push esi
lea ecx, [esp + 0x50]
mov byte [esp + 0xd44], 0xc
call fcn.00401ee0
mov ecx, dword [esp + 0xd4c]
mov byte [esp + 0xd40], 0xd
call fcn.00401070
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x4c]
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
lea ecx, [esp + 0x70]
mov edi, eax
call fcn.00401f10
push eax
call fcn.00609a4e
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.00622acb
mov edx, dword [esp + 0xd54]
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [edx], edi
je 0x5e5c95
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 + 0x4c]
call fcn.00401f10
push eax
lea ecx, [esp + 0x74]
call fcn.00401f10
push eax
lea ecx, [esp + 0x20]
call fcn.00401f10
push eax
push esi
mov esi, dword [esp + 0xd5c]
mov eax, dword [esi]
push eax
call fcn.006099de
mov ecx, dword [esi]
push ecx
call fcn.00609a4e
add esp, 0x18
mov dword [esi + 8], eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0xd40], 0xc
call fcn.00401070
lea ecx, [esp + 0x70]
mov byte [esp + 0xd40], 0xb
call fcn.00401070
lea ecx, [esp + 0x18]
mov byte [esp + 0xd40], 3
call fcn.00401070
lea ecx, [esp + 0x40]
mov byte [esp + 0xd40], 2
call fcn.00401070
lea ecx, [esp + 0x34]
mov byte [esp + 0xd40], 1
call fcn.00401070
lea ecx, [esp + 0x28]
mov byte [esp + 0xd40], bl
call fcn.00401070
lea ecx, [esp + 0x64]
mov dword [esp + 0xd40], 0xffffffff
call fcn.00401070
jmp 0x5e6003
mov ebp, dword [esp + 0xd50]
mov ecx, ebp
call fcn.00401f20
lea edx, [esp + 0x14]
push esi
push edx
call fcn.00402850
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x134]
lea edx, [esp + 0xa40]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x134]
lea ecx, [esp + 0x434]
push eax
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x98]
push edx
push eax
push ecx
mov dword [esp + 0xd5c], 0xe
call fcn.0060a5e5
add esp, 0x1c
lea edx, [esp + 0x12c]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
push ebx
push edx
mov dword [esp + 0x28], ebx
mov word [esp + 0x24], bx
call fcn.004027e0
lea edi, [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jbe 0x5e5dd2
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 + 0x14]
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 [0x6f7b78]
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 + 0x100], 0x100
mov dword [esp + 0x24], 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 0x5e5eac
mov ecx, dword [0x6fda50]
mov eax, dword [0x6fda54]
lea edx, [esp + 0x12c]
push ecx
push edx
lea ecx, [esp + 0x134]
push eax
push ecx
lea edx, [esp + 0x34]
push str._s__s._s_s__._.
push edx
call fcn.0061fae1
add esp, 0x18
jmp 0x5e5ec4
mov eax, dword [0x6fda50]
lea ecx, [esp + 0x24]
push eax
push str._s__._.
push ecx
call fcn.0061fae1
add esp, 0xc
mov edx, dword [esp + 0x24]
push 0x7c
push edx
call fcn.00609c00
add esp, 8
cmp eax, ebx
je 0x5e5ee9
mov byte [eax], bl
inc eax
push 0x7c
push eax
call fcn.00609c00
add esp, 8
cmp eax, ebx
jne 0x5e5ed7
mov eax, dword [esp + 0x24]
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 0x5e5f5f
lea ecx, [esp + 0x24]
mov byte [esp + 0xd40], 0xf
call fcn.00622d8a
lea ecx, [esp + 0x18]
mov byte [esp + 0xd40], 0xe
call fcn.00401070
lea ecx, [esp + 0x14]
mov dword [esp + 0xd40], 0xffffffff
call fcn.00622d8a
mov eax, 2
jmp 0x5e6008
mov eax, dword [esp + 0xf4]
push ebx
push eax
mov ecx, ebp
call fcn.004027e0
mov ecx, dword [esp + 0xf4]
push 0x2e
push ecx
call fcn.0060ab40
add esp, 8
cmp eax, ebx
jne 0x5e5fcd
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x58]
push edx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x64], ebx
mov word [esp + 0x60], bx
call fcn.00401f20
mov eax, dword [esp + 0x58]
mov byte [esp + 0xd40], 0x11
cmp eax, ebx
jne 0x5e5fb4
lea eax, [esp + 0x5c]
push eax
mov ecx, ebp
call fcn.0046c750
lea ecx, [esp + 0x58]
mov byte [esp + 0xd40], 0x10
call fcn.00401070
lea ecx, [esp + 0x24]
mov byte [esp + 0xd40], 0xf
call fcn.00622d8a
lea ecx, [esp + 0x18]
mov byte [esp + 0xd40], 0xe
call fcn.00401070
lea ecx, [esp + 0x14]
mov dword [esp + 0xd40], 0xffffffff
call fcn.00622d8a
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