Function at 0x42c050
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x449464]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x120], 0
cmp dword [0x450000], 0
je 0x42c099
cmp dword [ebp + 8], 0
jne 0x42c099
mov dword [ebp - 0x12c], 0
jmp 0x42c0a3
mov dword [ebp - 0x12c], 1
mov eax, dword [ebp - 0x12c]
mov dword [0x450078], eax
mov dword [0x520434], 0
mov dword [0x520438], 0
push 0x520228
call fcn.00403da0
add esp, 4
mov dword [0x52043c], eax
cmp dword [ebp + 8], 0
je 0x42c213
mov dword [ebp - 4], 0x520228
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x42c119
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x42c100
mov edx, dword [ebp - 4]
mov byte [edx], 0x2f
mov eax, dword [ebp - 4]
push eax
call fcn.004071d8
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
jne 0x42c0ef
mov dword [ebp - 4], 0x520228
movsx eax, byte [0x520228]
cmp eax, 0x2f
jne 0x42c152
mov dword [0x520438], 1
mov byte [ebp - 0x110], 0x2f
mov byte [ebp - 0x10f], 0
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x42c213
movzx edx, byte [0x520228]
push edx
call fcn.00408725
add esp, 4
test eax, eax
je 0x42c213
movsx eax, byte [0x520229]
cmp eax, 0x3a
jne 0x42c213
mov dword [0x520438], 1
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 4]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x118]
add edx, 1
mov dword [ebp - 0x118], edx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 4]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x118]
add ecx, 1
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x2f
jne 0x42c20a
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 4]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x118]
add edx, 1
mov dword [ebp - 0x118], edx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x118]
mov byte [ecx], 0
push 1
lea edx, [ebp - 0x110]
push edx
call fcn.0042b520
add esp, 8
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x42c23e
mov eax, dword [ebp - 0x11c]
jmp 0x42c8af
mov byte [ebp - 0x110], 0
lea eax, [ebp - 0x110]
mov dword [ebp - 0x118], eax
cmp dword [ebp + 8], 0
jne 0x42c28a
cmp dword [0x450008], 0
je 0x42c272
push 0x2f
push 0x520228
call fcn.00408a14
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42c281
mov dword [ebp - 4], 0x520228
jmp 0x42c28a
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x42c29b
mov edx, dword [ebp - 4]
push edx
call fcn.004071d8
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx ecx, byte [eax]
mov dword [ebp - 0x124], ecx
cmp dword [ebp - 0x124], 0
je 0x42c49f
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x130], edx
mov eax, dword [ebp - 0x130]
sub eax, 0x20
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0x5c
ja case.0x42c2e9.1
mov ecx, dword [ebp - 0x130]
movzx edx, byte [ecx + 0x42c8d4]
jmp dword [edx*4 + 0x42c8c0]
mov eax, dword [ebp - 0x118]
mov byte [eax], 0
lea ecx, [ebp - 0x110]
push ecx
call fcn.0042a3d0
add esp, 4
push 0x44a6b0
lea edx, [ebp - 0x110]
push edx
call fcn.00407150
add esp, 8
test eax, eax
jne 0x42c329
mov byte [ebp - 0x110], 0
jmp 0x42c35b
cmp dword [0x45004c], 0
jne 0x42c35b
push 0x44a6b4
lea eax, [ebp - 0x110]
push eax
call fcn.00407150
add esp, 8
test eax, eax
jne 0x42c35b
mov byte [ebp - 0x110], 0
mov dword [ebp - 0x120], 1
movsx ecx, byte [ebp - 0x110]
test ecx, ecx
je 0x42c39a
push 2
lea edx, [ebp - 0x110]
push edx
call fcn.0042b520
add esp, 8
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
and eax, 0x7f00
cmp eax, 0x100
jle 0x42c39a
mov eax, dword [ebp - 0x11c]
jmp 0x42c8af
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x114], 0
jmp 0x42c49a
mov edx, dword [ebp - 0x118]
mov byte [edx], 0x5f
mov eax, dword [ebp - 0x118]
add eax, 1
mov dword [ebp - 0x118], eax
jmp 0x42c49a
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0x118]
mov byte [edx], 0x3b
mov eax, dword [ebp - 0x118]
add eax, 1
mov dword [ebp - 0x118], eax
jmp 0x42c49a
cmp dword [0x450020], 0
jne 0x42c415
push 0x520228
call fcn.0042afb0
add esp, 4
test eax, eax
je 0x42c42f
mov ecx, dword [ebp - 0x118]
mov byte [ecx], 0x5f
mov edx, dword [ebp - 0x118]
add edx, 1
mov dword [ebp - 0x118], edx
jmp 0x42c447
mov eax, dword [ebp - 0x118]
mov byte [eax], 0x20
mov ecx, dword [ebp - 0x118]
add ecx, 1
mov dword [ebp - 0x118], ecx
jmp 0x42c49a
mov edx, dword [ebp - 0x124]
push edx
call fcn.00408928
add esp, 4
test eax, eax
jne 0x42c465
cmp dword [ebp - 0x124], 0x7f
jb 0x42c49a
mov eax, dword [ebp - 4]
push eax
call fcn.00409db3
add esp, 4
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x118]
push edx
call fcn.004043d0
add esp, 0xc
mov eax, dword [ebp - 0x118]
push eax
call fcn.004071d8
add esp, 4
mov dword [ebp - 0x118], eax
jmp 0x42c28c
cmp dword [ebp - 0x120], 0
je 0x42c514
cmp dword [0x45001c], 0
jne 0x42c514
push 0
push 0x4000
push 0x5180c4
push 0x520228
call fcn.004206f0
add esp, 0xc
push eax
push str.warning:__skipped__..___path_component_s__in__s_n
push 0x5100c4
call fcn.00405f89
add esp, 0xc
push eax
push 0x5100c4
push 0x44ffe0
call dword [0x52040c]
add esp, 0x10
mov ecx, dword [ebp - 0x11c]
and ecx, 0xffff80ff
jne 0x42c514
mov edx, dword [ebp - 0x11c]
and edx, 0x7f00
or edx, 1
mov dword [ebp - 0x11c], edx
mov eax, dword [0x52043c]
push eax
push 0x520228
call fcn.004275f0
add esp, 8
movsx ecx, byte [eax]
cmp ecx, 0x2f
jne 0x42c6ca
movsx edx, byte [0x5205a0]
test edx, edx
jne 0x42c550
push 0x520228
push 0x5205a0
call fcn.00408550
add esp, 8
push 4
push 0x520228
call fcn.0042b520
add esp, 8
cmp dword [0x520434], 0
je 0x42c63c
cmp dword [0x45001c], 0
jne 0x42c5b5
push 0
push 0x4000
push 0x5180c4
push 0x520228
call fcn.004206f0
add esp, 0xc
push eax
push str.___creating:___22s_n
push 0x5100c4
call fcn.00405f89
add esp, 0xc
push eax
push 0x5100c4
push 0x44ffe0
call dword [0x52040c]
add esp, 0x10
mov eax, dword [0x5100c0]
mov ecx, dword [eax + 0x24]
and ecx, 0x6f
je 0x42c625
mov edx, dword [0x5100c0]
mov eax, dword [edx + 0x24]
and eax, 0x7f
push eax
push 0x520228
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x42c625
push 1
push 0x4000
push 0x5180c4
push 0x520228
call fcn.004206f0
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x44a700
push 0x5100c4
call fcn.00405f89
add esp, 0x10
push eax
push 0x5100c4
push 0x44ffe0
call dword [0x52040c]
add esp, 0x10
mov eax, dword [ebp - 0x11c]
and eax, 0xffff80ff
or eax, 0x1000
jmp 0x42c8af
cmp dword [0x450074], 1
jne 0x42c6b5
mov ecx, dword [0x5100c0]
mov edx, dword [ecx + 0x24]
and edx, 0x6f
je 0x42c6b5
mov eax, dword [0x5100c0]
mov ecx, dword [eax + 0x24]
and ecx, 0x7f
push ecx
push 0x520228
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x42c6b5
push 1
push 0x4000
push 0x5180c4
push 0x520228
call fcn.004206f0
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nwarning___d_:_could_not_set_file_attributes_for__s_n
push 0x5100c4
call fcn.00405f89
add esp, 0x10
push eax
push 0x5100c4
push 0x44ffe0
call dword [0x52040c]
add esp, 0x10
mov eax, dword [ebp - 0x11c]
and eax, 0xffff80ff
or eax, 0x200
jmp 0x42c8af
mov edx, dword [ebp - 0x118]
mov byte [edx], 0
cmp dword [0x45003c], 0
jne 0x42c731
cmp dword [ebp - 0x114], 0
je 0x42c731
mov eax, dword [ebp - 0x114]
add eax, 1
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
movzx edx, byte [ecx]
push edx
call fcn.00408825
add esp, 4
test eax, eax
je 0x42c71b
mov eax, dword [ebp - 0x118]
add eax, 1
mov dword [ebp - 0x118], eax
jmp 0x42c6f4
mov ecx, dword [ebp - 0x118]
movsx edx, byte [ecx]
test edx, edx
jne 0x42c731
mov eax, dword [ebp - 0x114]
mov byte [eax], 0
lea ecx, [ebp - 0x110]
push ecx
call fcn.0042a3d0
add esp, 4
movsx edx, byte [ebp - 0x110]
test edx, edx
jne 0x42c7a0
push 1
push 0x4000
push 0x5180c4
push 0x520228
call fcn.004206f0
add esp, 0xc
push eax
push str.mapname:__conversion_of__s_failed_n
push 0x5100c4
call fcn.00405f89
add esp, 0xc
push eax
push 0x5100c4
push 0x44ffe0
call dword [0x52040c]
add esp, 0x10
mov eax, dword [ebp - 0x11c]
and eax, 0xffff80ff
or eax, 0x300
jmp 0x42c8af
push 3
lea eax, [ebp - 0x110]
push eax
call fcn.0042b520
add esp, 8
push 4
push 0x520228
call fcn.0042b520
add esp, 8
mov ecx, dword [0x5100c0]
mov edx, dword [ecx + 0x28]
shr edx, 5
and edx, 1
je 0x42c8a9
mov eax, dword [0x520440]
add eax, 0x60
mov byte [ebp - 0x128], al
push 0x44a794
lea ecx, [ebp - 0x127]
push ecx
call fcn.00408550
add esp, 8
cmp dword [0x45001c], 0
jne 0x42c847
push 0
push 0x4000
push 0x5180c4
push 0x520228
call fcn.004206f0
add esp, 0xc
push eax
lea edx, [ebp - 0x128]
push edx
push str.labelling__s___22s_n
push 0x5100c4
call fcn.00405f89
add esp, 0x10
push eax
push 0x5100c4
push 0x44ffe0
call dword [0x52040c]
add esp, 0x10
push 0x520228
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
test eax, eax
jne 0x42c897
push 1
push str.mapname:__error_setting_volume_label_n
push 0x5100c4
call fcn.00405f89
add esp, 8
push eax
push 0x5100c4
push 0x44ffe0
call dword [0x52040c]
add esp, 0x10
mov eax, dword [ebp - 0x11c]
and eax, 0xffff80ff
or eax, 0x300
jmp 0x42c8af
mov eax, dword [ebp - 0x11c]
and eax, 0xffff80ff
or eax, 0x200
jmp 0x42c8af
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00403c87
mov esp, ebp
pop ebp
ret