Function at 0x5c3e00
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x65bdf8
mov eax, dword fs:[0]
push eax
sub esp, 0xaac
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0xaa8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0xac0]
mov dword fs:[0], eax
mov esi, dword [esp + 0xad0]
mov ebp, dword [esp + 0xad4]
xor ebx, ebx
push esi
mov ecx, ebp
cmp dword [0x747d18], ebx
je 0x5c42c9
call fcn.004017f0
push 0x200
lea eax, [esp + 0xb8]
push ebx
push eax
call fcn.00615eb0
push 0x200
lea ecx, [esp + 0x4c4]
push ebx
push ecx
call fcn.00615eb0
mov eax, esi
add esp, 0x18
mov byte [esp + 0x17], bl
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5c3e91
sub eax, edx
sar eax, 1
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x5c3f41
cmp word [esi + edi*2 - 2], 0x5c
je 0x5c3f41
push pe_nt_image_headers32
lea edx, [esp + 0xb8]
push edx
push pe_nt_image_headers32
lea eax, [esp + 0x4c0]
push eax
push pe_nt_image_headers32
lea ecx, [esp + 0x6c8]
push ecx
push 3
lea edx, [esp + 0xc8]
push edx
push esi
call fcn.00618767
add esp, 0x24
test eax, eax
je 0x5c3f22
xor eax, eax
xor ecx, ecx
xor edx, edx
mov word [esp + 0xb4], ax
mov word [esp + 0x4b4], cx
mov word [esp + 0x6b4], dx
mov word [esp + 0xac], ax
lea edx, [esp + 0x8b4]
mov eax, esi
sub edx, esi
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x5c3f30
jmp 0x5c3f5c
push 0x208
lea ecx, [esp + 0x8b8]
push ebx
push ecx
mov byte [esp + 0x23], 1
call fcn.00615eb0
add esp, 0xc
lea eax, [esp + 0xb4]
xor edx, edx
push eax
lea ecx, [esp + 0x8c]
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x94], ebx
mov word [esp + 0x90], dx
call fcn.004017f0
mov dword [esp + 0xac8], ebx
lea eax, [esp + 0xb4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5c3fa0
sub eax, edx
sar eax, 1
cmp eax, 1
jbe 0x5c3ff8
xor eax, eax
jmp 0x5c3fc0
movzx ecx, word [esp + eax + 0xb4]
mov word [esp + eax + 0x2b4], cx
add eax, 2
cmp cx, bx
jne 0x5c3fc0
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x2b6]
mov word [esp + eax + 0xb4], cx
add eax, 2
cmp cx, bx
jne 0x5c3fe0
push 0x58
lea ecx, [esp + 0x24]
push ebx
push ecx
call fcn.00615eb0
add esp, 0xc
lea edx, [esp + 0x8b4]
mov dword [esp + 0x20], 0x58
mov dword [esp + 0x24], ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 0x208
mov dword [esp + 0x38], 1
cmp byte [esp + 0x17], bl
je 0x5c403b
mov dword [esp + 0x4c], esi
jmp 0x5c404e
lea eax, [esp + 0x4b4]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 0x200
xor ecx, ecx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x9c], ebx
mov word [esp + 0x98], cx
mov byte [esp + 0xac8], 1
xor edx, edx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa8], ebx
mov word [esp + 0xa4], dx
mov byte [esp + 0xac8], 2
mov eax, dword [0x752d00]
mov ecx, dword [0x753e90]
push eax
push ecx
lea ecx, [esp + 0xa8]
call fcn.00401980
xor edx, edx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x84], ebx
mov word [esp + 0x80], dx
mov byte [esp + 0xac8], 3
mov eax, dword [0x752d00]
mov ecx, dword [0x753e8c]
push eax
push ecx
lea ecx, [esp + 0x84]
call fcn.00401980
lea eax, [esp + 0xb4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5c40e7
sub eax, edx
sar eax, 1
mov eax, dword [esp + 0xa0]
je 0x5c413c
mov ecx, eax
cmp eax, ebx
jne 0x5c410c
lea ecx, [esp + 0xa4]
mov eax, dword [esp + 0x7c]
cmp eax, ebx
jne 0x5c411b
lea eax, [esp + 0x80]
push ebx
push ecx
lea edx, [esp + 0xbc]
push edx
push eax
mov eax, edx
push eax
push str._s__s._s_s__._.
lea ecx, [esp + 0xac]
call fcn.0043b9c0
jmp 0x5c415a
cmp eax, ebx
jne 0x5c4147
lea eax, [esp + 0xa4]
push ebx
push eax
push str._s__._.
lea ecx, [esp + 0xa0]
call fcn.004021b0
mov eax, dword [esp + 0x94]
cmp eax, ebx
jne 0x5c416c
lea eax, [esp + 0x98]
push 0x7c
push eax
call fcn.00617340
add esp, 8
cmp eax, ebx
je 0x5c4197
jmp 0x5c4180
xor ecx, ecx
mov word [eax], cx
add eax, 2
push 0x7c
push eax
call fcn.00617340
add esp, 8
cmp eax, ebx
jne 0x5c4180
mov eax, dword [esp + 0x94]
cmp eax, ebx
je 0x5c41a8
mov dword [esp + 0x2c], eax
jmp 0x5c41b3
lea edx, [esp + 0x98]
mov dword [esp + 0x2c], edx
lea ecx, [esp + 0x20]
lea eax, [esp + 0xb4]
push ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], 0x802
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
cmp eax, 1
je 0x5c422f
mov byte [esp + 0xac8], 2
lea ecx, [esp + 0x7c]
call fcn.00401210
mov byte [esp + 0xac8], 1
lea ecx, [esp + 0xa0]
call fcn.00401210
mov byte [esp + 0xac8], bl
lea ecx, [esp + 0x94]
call fcn.00401210
mov dword [esp + 0xac8], 0xffffffff
lea ecx, [esp + 0x88]
call fcn.00401210
mov eax, 2
jmp 0x5c45b7
mov edx, dword [esp + 0x3c]
push 0x2e
push edx
call fcn.006152e7
add esp, 8
cmp eax, ebx
je 0x5c4250
mov eax, dword [esp + 0x3c]
push eax
mov ecx, ebp
call fcn.004017f0
jmp 0x5c4275
mov eax, dword [esp + 0x88]
cmp eax, ebx
jne 0x5c4262
lea eax, [esp + 0x8c]
mov ecx, dword [esp + 0x3c]
push ebx
push eax
push ecx
push 0x66dde0
mov ecx, ebp
call fcn.00402320
mov byte [esp + 0xac8], 2
lea ecx, [esp + 0x7c]
call fcn.00401210
mov byte [esp + 0xac8], 1
lea ecx, [esp + 0xa0]
call fcn.00401210
mov byte [esp + 0xac8], bl
lea ecx, [esp + 0x94]
call fcn.00401210
mov dword [esp + 0xac8], 0xffffffff
lea ecx, [esp + 0x88]
call fcn.00401210
jmp 0x5c45b2
call fcn.004017f0
push ebx
lea edx, [esp + 0x20]
push esi
push edx
call fcn.00402a70
mov dword [esp + 0xad4], 4
push pe_nt_image_headers32
lea eax, [esp + 0x2c4]
push ebx
push eax
call fcn.00615eb0
push pe_nt_image_headers32
lea ecx, [esp + 0x2d0]
push ecx
push pe_nt_image_headers32
lea edx, [esp + 0x6d8]
push edx
mov edx, dword [esp + 0x44]
push pe_nt_image_headers32
lea eax, [esp + 0x4e0]
push eax
push 3
lea ecx, [esp + 0xac]
push ecx
push edx
call fcn.00619912
add esp, 0x3c
push ebx
lea ecx, [esp + 0x2b8]
xor eax, eax
push ecx
lea ecx, [esp + 0x84]
mov dword [esp + 0x84], ebx
mov dword [esp + 0x8c], ebx
mov word [esp + 0x88], ax
call fcn.00401980
mov byte [esp + 0xac8], 5
lea eax, [esp + 0x2b4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5c4375
sub eax, edx
cmp eax, 1
jbe 0x5c439a
lea eax, [esp + 0x2b5]
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [eax - 1], cl
inc eax
cmp cl, bl
jne 0x5c4390
push 0x58
lea edx, [esp + 0x24]
push ebx
push edx
call fcn.00615eb0
mov eax, dword [esp + 0x28]
lea edx, [esp + 0xc0]
add esp, 0xc
mov dword [esp + 0x20], 0x58
mov dword [esp + 0x24], ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x5c43c3
lea ecx, [esp + 0x6b4]
lea eax, [esp + 0xb4]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0x104
mov dword [esp + 0x38], 1
mov dword [esp + 0x48], pe_nt_image_headers32
call fcn.00402500
mov byte [esp + 0xac8], 6
lea eax, [esp + 0x2b4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5c4416
sub eax, edx
je 0x5c444e
mov edx, dword [0x753e90]
mov ecx, dword [0x753e8c]
push edx
lea eax, [esp + 0x2b8]
push eax
push ecx
mov edx, eax
push edx
lea eax, [esp + 0x28]
push str._s__s._s_s__._.
push eax
call fcn.00402f70
add esp, 0x18
jmp 0x5c4467
mov ecx, dword [0x753e90]
push ecx
lea edx, [esp + 0x1c]
push str._s__._.
push edx
call fcn.00402f70
add esp, 0xc
mov eax, dword [esp + 0x18]
push 0x7c
push eax
call fcn.00616db0
add esp, 8
cmp eax, ebx
je 0x5c4492
lea ebx, [ebx]
mov byte [eax], bl
inc eax
push 0x7c
push eax
call fcn.00616db0
add esp, 8
cmp eax, ebx
jne 0x5c4480
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
lea edx, [esp + 0x2b4]
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x58], 0x802
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
cmp eax, 1
je 0x5c44fd
mov byte [esp + 0xac8], 5
lea ecx, [esp + 0x18]
call fcn.00402570
mov byte [esp + 0xac8], 4
lea ecx, [esp + 0x7c]
call fcn.00401210
mov dword [esp + 0xac8], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402570
mov eax, 2
jmp 0x5c45b7
mov ecx, dword [esp + 0x3c]
push ebx
push ecx
mov ecx, ebp
call fcn.00401980
mov edx, dword [esp + 0x3c]
push 0x2e
push edx
call fcn.00617f70
add esp, 8
cmp eax, ebx
jne 0x5c457c
mov ecx, dword [esp + 0x7c]
xor eax, eax
push ecx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x94], ebx
mov word [esp + 0x90], ax
call fcn.004017f0
mov byte [esp + 0xac8], 7
mov eax, dword [esp + 0x88]
cmp eax, ebx
jne 0x5c4560
lea eax, [esp + 0x8c]
push eax
mov ecx, ebp
call fcn.00405300
mov byte [esp + 0xac8], 6
lea ecx, [esp + 0x88]
call fcn.00401210
mov byte [esp + 0xac8], 5
lea ecx, [esp + 0x18]
call fcn.00402570
mov byte [esp + 0xac8], 4
lea ecx, [esp + 0x7c]
call fcn.00401210
mov dword [esp + 0xac8], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402570
mov eax, 1
mov ecx, dword [esp + 0xac0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xaa8]
xor ecx, esp
call fcn.006157d3
add esp, 0xab8
ret 8