Function at 0x476900
Capabilities:
Get common file path
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4f7656
mov eax, dword fs:[0]
push eax
sub esp, 0x324
mov eax, dword [0x5e4ce0]
xor eax, esp
mov dword [esp + 0x320], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e4ce0]
xor eax, esp
push eax
lea eax, [esp + 0x338]
mov dword fs:[0], eax
mov eax, dword [esp + 0x350]
mov ebx, dword [esp + 0x354]
mov edx, dword [esp + 0x35c]
mov edi, dword [esp + 0x348]
mov ebp, dword [esp + 0x34c]
mov esi, ecx
cmp byte [esi + 8], 0xcf
mov ecx, dword [esp + 0x358]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x364]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], eax
je 0x47698f
mov byte [0], 0x78
test edi, edi
jne 0x4769a8
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
push str.No_output_object_for_file_entry_
mov ecx, ebx
call eax
xor al, al
jmp 0x477428
cmp byte [esp + 0x368], 0
jne 0x4769cd
cmp dword [esi + 0x28], 0
jne 0x4769cd
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
push str.Internal_Error:_Full_filename_is_missing_for_file_entry.
mov ecx, ebx
call eax
xor al, al
jmp 0x477428
cmp byte [esi + 8], 0xcf
je 0x4769da
mov byte [0], 0x78
mov ecx, dword [esi + 0x24]
and byte [esi + 0x13], 0xfd
test ecx, ecx
je 0x4769f4
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 0x24], 0
cmp dword [esi + 0x20], 0
jne 0x476a0f
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
push str.Failed_to_Zip:_reason__1__no_back_ref_
mov ecx, ebx
call eax
xor al, al
jmp 0x477428
mov ecx, dword [esi + 0x18]
test ecx, ecx
jne 0x476a2b
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
push str.Failed_to_Zip:_reason__2
mov ecx, ebx
call eax
xor al, al
jmp 0x477428
call fcn.004c49f0
test eax, eax
jne 0x476a49
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
push str.Failed_to_Zip:_reason__3
mov ecx, ebx
call eax
xor al, al
jmp 0x477428
cmp byte [esp + 0x368], 0
jne 0x476a6e
cmp dword [esi + 0x28], 0
jne 0x476a6e
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
push str.Failed_to_Zip:_reason__4
mov ecx, ebx
call eax
xor al, al
jmp 0x477428
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x476a93
call fcn.004c49f0
test eax, eax
jne 0x476a93
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
push str.Failed_to_Zip:_reason__5
mov ecx, ebx
call eax
xor al, al
jmp 0x477428
mov ecx, dword [esi + 0x20]
call fcn.00471850
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x24], eax
call fcn.00471860
mov byte [esp + 0x16], al
mov eax, dword [esp + 0x24]
cmp eax, 4
jne 0x476abb
mov byte [esp + 0x16], 0
jmp 0x476ac7
test eax, eax
je 0x476ac7
mov byte [esi + 0x11], 8
mov byte [esi + 0x12], 6
lea ecx, [esp + 0x74]
call fcn.0049e840
cmp byte [esp + 0x368], 0
mov dword [esp + 0x340], 0
jne 0x476bcf
mov ecx, dword [esi + 0x28]
push ebx
call fcn.004c06c0
push eax
lea ecx, [esp + 0x7c]
call fcn.0049edb0
test al, al
jne 0x476bcf
lea ecx, [esp + 0x230]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov al, byte [esp + 0x7c]
test al, al
mov edx, dword [esp + 0x1c]
mov byte [edx], al
jne 0x476ba3
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
lea ecx, [esp + 0x230]
push ecx
push str.curDir
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
push str.Failed_to_obtain_file_information
mov ecx, ebx
call edx
lea ecx, [esp + 0xc8]
call fcn.004537d0
mov ecx, dword [esi + 0x18]
mov byte [esp + 0x340], 1
call fcn.004c06c0
push eax
lea ecx, [esp + 0xcc]
call fcn.00453a60
mov edi, dword [ebx]
lea ecx, [esp + 0xc8]
add edi, 0x28
call fcn.00453f00
push eax
mov eax, dword [edi]
push str.filename
mov ecx, ebx
call eax
lea ecx, [esp + 0xc8]
mov byte [esp + 0x340], 0
call fcn.00453880
cmp byte [esi + 8], 0xcf
je 0x476bb0
mov byte [0], 0x78
and byte [esi + 0x13], 0xfd
lea ecx, [esp + 0x74]
mov dword [esp + 0x340], 0xffffffff
call fcn.0049e8b0
xor al, al
jmp 0x477428
mov ecx, dword [esi + 0x20]
call fcn.00470a30
test al, al
je 0x476c0d
cmp byte [esp + 0x368], 0
jne 0x476ca9
mov ecx, dword [esi + 0x28]
call fcn.004c06c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esi + 0x28]
and eax, 0xffffffdf
push eax
call fcn.004c06c0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x476c1b
cmp byte [esp + 0x368], 0
jne 0x476ca9
fldz
mov ecx, dword [esi + 0x28]
fcomp qword [ecx + 0x20]
fnstsw ax
test ah, 0x44
jnp 0x476c94
lea ecx, [esp + 0x1c]
call fcn.00466a10
mov eax, dword [esi + 0x28]
lea edx, [esp + 0x200]
push edx
add eax, 0x20
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x348], 2
call fcn.004667c0
lea ecx, [esp + 0x1f4]
push ecx
lea edx, [esp + 0x204]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1fc]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x340], 0
call fcn.00466a20
jmp 0x476d05
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x7c]
call fcn.0049e910
jmp 0x476d05
lea edx, [esp + 0x200]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 0x1f4]
push eax
lea ecx, [esp + 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1fc]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
cmp byte [esp + 0x368], 0
je 0x476d05
mov dword [esp + 0xc0], 0x10
mov dword [esp + 0xa0], 0
push 0x1c
call fcn.004cabe6
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x340], 3
je 0x476d28
mov ecx, eax
call fcn.004a4090
jmp 0x476d2a
xor eax, eax
mov dx, word [esp + 0x20]
mov dword [esi + 0x24], eax
mov word [eax + 6], dx
mov eax, dword [esi + 0x24]
mov cx, word [esp + 0x18]
mov word [eax + 4], cx
mov edx, dword [esi + 0x24]
mov eax, dword [esp + 0xc0]
mov dword [edx + 0x10], eax
mov ecx, dword [esi + 0x24]
mov edx, dword [esp + 0xa0]
mov dword [ecx + 0xc], edx
mov eax, dword [esi + 0x24]
test byte [eax + 0x10], 0x10
mov byte [esp + 0x340], 0
je 0x476d8e
cmp byte [esi + 8], 0xcf
je 0x476d7a
mov byte [0], 0x78
mov ecx, dword [esi + 0x20]
or byte [esi + 0x13], 4
call fcn.00470a40
test al, al
jne 0x477412
mov ecx, esi
call fcn.00475930
test al, al
mov byte [esp + 0x17], al
je 0x476dad
mov ecx, dword [esi + 0x20]
call fcn.00470a40
test al, al
jne 0x477412
lea ecx, [esp + 0x58]
call fcn.00451c20
mov ecx, dword [esi + 0x18]
mov byte [esp + 0x340], 4
call fcn.004c06c0
push eax
lea ecx, [esp + 0x5c]
call fcn.004516b0
mov ecx, dword [esp + 0x360]
push ecx
push 0xfde9
lea ecx, [esp + 0x60]
call fcn.00452430
mov ecx, dword [esi + 0x20]
call fcn.00470a40
test al, al
je 0x476dfb
lea ecx, [esp + 0x58]
call fcn.00452d20
mov ecx, dword [esi + 0x20]
call fcn.00472490
cmp byte [eax], 0
mov dword [esp + 0x1c], eax
je 0x476e74
lea ecx, [esp + 0x200]
call fcn.00451c20
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x204]
mov byte [esp + 0x344], 5
call fcn.004516b0
mov eax, dword [esp + 0x360]
push eax
push 0xfde9
lea ecx, [esp + 0x208]
call fcn.00452430
lea ecx, [esp + 0x200]
call fcn.004c06c0
push eax
lea ecx, [esp + 0x5c]
call fcn.00451300
lea ecx, [esp + 0x200]
mov byte [esp + 0x340], 4
call fcn.00451e70
mov cl, byte [esp + 0x17]
test cl, cl
jne 0x476f2a
lea ecx, [esp + 0xc8]
call fcn.004537d0
mov ecx, dword [esi + 0x28]
mov byte [esp + 0x340], 6
call fcn.004c06c0
push eax
lea ecx, [esp + 0xcc]
call fcn.00453a60
lea ecx, [esp + 0xc8]
push ebx
push ecx
call fcn.00456880
add esp, 8
cmp eax, 0xffffffff
jne 0x476f08
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
push str.Open_failure_1
mov ecx, ebx
call eax
cmp byte [esi + 8], 0xcf
je 0x476eda
mov byte [0], 0x78
and byte [esi + 0x13], 0xfd
lea ecx, [esp + 0xc8]
mov byte [esp + 0x340], 4
call fcn.00453880
lea ecx, [esp + 0x58]
mov byte [esp + 0x340], 0
call fcn.00451e70
jmp 0x476bb4
push ebx
push eax
call fcn.004661e0
add esp, 8
lea ecx, [esp + 0xc8]
mov byte [esp + 0x340], 4
call fcn.00453880
mov cl, byte [esp + 0x17]
xor eax, eax
test cl, cl
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov word [esp + 0x48], ax
mov dword [esp + 0x2c], 0x4034b50
je 0x476f65
mov word [esp + 0x30], 0xa
mov byte [esi + 0x11], al
jmp 0x476f6c
mov word [esp + 0x30], 0x14
cmp byte [esp + 0x16], 0
mov edx, dword [esp + 0x24]
je 0x476f8f
test edx, edx
jne 0x476f8f
test cl, cl
jne 0x476f9e
cmp dword [esp + 0xa0], 0
je 0x476f9e
mov ax, 1
jmp 0x476fa1
cmp edx, 4
jne 0x476f9e
test cl, cl
jne 0x476f9e
mov ax, 1
jmp 0x476fa1
xor ax, ax
cmp edx, 4
mov word [esp + 0x32], ax
mov byte [esp + 0x16], 0
jne 0x476fc3
cmp ax, 1
jne 0x476fc3
mov byte [esp + 0x16], al
mov word [esp + 0x34], 0x63
jmp 0x476fcd
movzx cx, byte [esi + 0x11]
mov word [esp + 0x34], cx
mov dx, word [esp + 0x20]
mov ax, word [esp + 0x18]
push 0x2f
push 0x5c
lea ecx, [esp + 0x60]
mov word [esp + 0x40], dx
mov word [esp + 0x3e], ax
call fcn.004511b0
mov bl, byte [esp + 0x17]
test bl, bl
je 0x47700e
lea ecx, [esp + 0x58]
call fcn.00452b40
cmp al, 0x2f
je 0x47700e
push 0x2f
lea ecx, [esp + 0x5c]
call fcn.00451260
lea ecx, [esp + 0x58]
call fcn.004c49f0
mov dl, byte [esp + 0x16]
xor ecx, ecx
test dl, dl
mov word [esp + 0x46], ax
mov word [esp + 0x48], cx
je 0x477034
mov word [esp + 0x48], 0xb
jmp 0x477045
cmp dword [esp + 0x24], ecx
je 0x477045
test bl, bl
jne 0x477045
mov word [esp + 0x48], 0x14
test bl, bl
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x3e], ecx
mov dword [esp + 0x42], eax
mov dword [esp + 0x3a], ecx
jne 0x47706c
cmp eax, ecx
jne 0x47706c
test dl, dl
jne 0x47706c
mov word [esp + 0x34], cx
mov byte [esi + 0x11], cl
mov ecx, dword [esi + 0x24]
mov edx, dword [ebp]
mov dword [ecx + 0x14], edx
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
push 1
mov dword [esp + 0x20], eax
push 0x1e
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call fcn.0049e4b0
add dword [ebp], 0x1e
push 1
lea ecx, [esp + 0x5c]
call fcn.004c49f0
push eax
lea ecx, [esp + 0x60]
call fcn.004c06c0
push eax
mov ecx, edi
call fcn.0049e4b0
lea ecx, [esp + 0x58]
call fcn.004c49f0
add dword [ebp], eax
xor ebx, ebx
cmp byte [esp + 0x16], bl
je 0x477225
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
mov ecx, dword [esi + 0x20]
mov ebx, eax
mov byte [esp + 0x1f4], 1
mov byte [esp + 0x1f5], 0x99
mov byte [esp + 0x1f6], 7
mov byte [esp + 0x1f7], 0
mov byte [esp + 0x1f8], 2
mov byte [esp + 0x1f9], 0
mov byte [esp + 0x1fa], 0x41
mov byte [esp + 0x1fb], 0x45
call fcn.00471870
cmp eax, 0xc0
mov ecx, 1
jne 0x477131
mov ecx, 2
jmp 0x47713d
cmp eax, 0x100
jne 0x47713d
mov ecx, 3
cmp dword [esp + 0xa0], 0
mov byte [esp + 0x1fc], cl
mov cl, byte [esi + 0x11]
mov byte [esp + 0x1fd], cl
jne 0x477160
mov byte [esp + 0x1fd], 0
push 1
push 0xb
lea edx, [esp + 0x1fc]
push edx
mov ecx, edi
mov byte [esp + 0x20a], 0
call fcn.0049e4b0
add dword [ebp], 0xb
cmp byte [esp + 0x17], 0
jne 0x4773f0
lea ecx, [esp + 0x124]
call fcn.004a4260
movzx ecx, byte [esi + 0x12]
push ecx
lea ecx, [esp + 0x128]
mov byte [esp + 0x344], 7
call fcn.004a40f0
mov edx, dword [esp + 0x50]
push edx
lea ecx, [esp + 0x128]
call fcn.004a41e0
push 0
lea ecx, [esp + 0x128]
call fcn.004a4140
push edi
lea ecx, [esp + 0x128]
call fcn.004a41f0
mov ecx, dword [esi + 0x28]
call fcn.004c06c0
push eax
lea ecx, [esp + 0x128]
call fcn.004a4120
cmp dword [esp + 0xa0], 0
jne 0x477206
lea ecx, [esp + 0x124]
call fcn.004a5120
push 0
lea ecx, [esp + 0x128]
call fcn.004a41a0
cmp byte [esi + 0x11], 0
lea ecx, [esp + 0x124]
jne 0x477262
push 0
jmp 0x477264
cmp dword [esp + 0x24], 0
je 0x47717f
cmp byte [esp + 0x17], 0
jne 0x4773f0
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
push 1
mov ebx, eax
push 0x14
lea eax, [esp + 0x208]
push eax
mov ecx, edi
call fcn.0049e4b0
add dword [ebp], 0x14
jmp 0x47718a
push 1
call fcn.004a41b0
lea ecx, [esp + 0x200]
call fcn.0048d3f0
lea eax, [esp + 0x200]
push eax
mov ecx, esi
mov byte [esp + 0x344], 8
call fcn.00475a70
lea ecx, [esp + 0x200]
push ecx
lea ecx, [esp + 0x128]
call fcn.0048d470
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x28]
push 0x49db
push edx
push eax
lea ecx, [esp + 0x130]
call fcn.004a5f10
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
mov edx, dword [esi + 0x24]
mov dword [esp + 0x3a], eax
lea ecx, [esp + 0x124]
mov dword [edx + 0x18], eax
call fcn.004a4110
mov ecx, dword [esp + 0x54]
mov dword [ecx], eax
mov edx, dword [esi + 0x24]
mov dword [esp + 0x3e], eax
lea ecx, [esp + 0x124]
mov dword [edx + 8], eax
call fcn.004a4100
mov dword [esp + 0x42], eax
mov eax, dword [esp + 0x3e]
add dword [ebp], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
mov edx, dword [edi]
mov edx, dword [edx + 0x10]
mov ebp, eax
mov eax, dword [esp + 0x1c]
push eax
mov ecx, edi
call edx
push 1
push 0x1e
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call fcn.0049e4b0
cmp byte [esp + 0x16], 0
jne 0x4773be
test ebx, ebx
je 0x4773be
cmp dword [esp + 0x24], 0
je 0x4773be
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
push ebx
mov ecx, edi
call eax
push 1
push 4
lea ecx, [esp + 0x5c]
push ecx
mov ecx, edi
mov dword [esp + 0x60], 0xab39f277
call fcn.0049e4b0
push 1
push 4
lea edx, [esp + 0x54]
xor ebx, ebx
push edx
mov ecx, edi
mov dword [esp + 0x58], ebx
call fcn.0049e4b0
push 1
push 4
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call fcn.0049e4b0
mov ecx, dword [esi + 0x20]
call fcn.00471870
push 1
push 4
lea ecx, [esp + 0x58]
push ecx
mov ecx, edi
mov dword [esp + 0x5c], eax
call fcn.0049e4b0
push 1
push 4
lea edx, [esp + 0x30]
push edx
mov ecx, edi
mov dword [esp + 0x34], ebx
call fcn.0049e4b0
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
push ebp
mov ecx, edi
call edx
lea ecx, [esp + 0x200]
mov byte [esp + 0x340], 7
call fcn.0048d460
lea ecx, [esp + 0x124]
mov byte [esp + 0x340], 4
call fcn.004a4340
cmp byte [esi + 8], 0xcf
je 0x4773fd
mov byte [0], 0x78
or byte [esi + 0x13], 2
lea ecx, [esp + 0x58]
mov byte [esp + 0x340], 0
call fcn.00451e70
lea ecx, [esp + 0x74]
mov dword [esp + 0x340], 0xffffffff
call fcn.0049e8b0
mov al, 1
mov ecx, dword [esp + 0x338]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x320]
xor ecx, esp
call fcn.004d99c4
add esp, 0x330
ret 0x24