Function at 0x498c70
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov dword [ebp - 4], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x120], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0
je 0x498caf
cmp dword [ebp + 0xc], 0
jne 0x498caf
mov dword [ebp - 0x12c], 0
jmp 0x498cb9
mov dword [ebp - 0x12c], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x12c]
mov dword [ecx + 0x90], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x10cdc], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10ce0], 0
mov edx, dword [ebp + 8]
add edx, 0x10b2c
push edx
call fcn.004be7f0
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10ce4], eax
cmp dword [ebp + 0xc], 0
je 0x498e8f
mov edx, dword [ebp + 8]
add edx, 0x10b2c
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax]
test ecx, ecx
je 0x498d47
mov edx, dword [ebp - 4]
movzx eax, byte [edx]
cmp eax, 0x5c
jne 0x498d2e
mov ecx, dword [ebp - 4]
mov byte [ecx], 0x2f
mov edx, dword [ebp - 4]
push edx
call fcn.004c2c28
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx ecx, byte [eax]
test ecx, ecx
jne 0x498d1d
mov edx, dword [ebp + 8]
add edx, 0x10b2c
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x10b2c]
cmp ecx, 0x2f
jne 0x498d8b
mov edx, dword [ebp + 8]
mov dword [edx + 0x10ce0], 1
mov byte [ebp - 0x110], 0x2f
mov byte [ebp - 0x10f], 0
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x498e8f
cmp dword [0x52bd88], 1
jle 0x498db4
push 0x103
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x10b2c]
push edx
call fcn.004c2a2e
add esp, 8
mov dword [ebp - 0x130], eax
jmp 0x498dd3
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x10b2c]
mov edx, dword [str.________________________________H]
movzx eax, word [edx + ecx*2]
and eax, 0x103
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x498e8f
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x10b2d]
cmp edx, 0x3a
jne 0x498e8f
mov eax, dword [ebp + 8]
mov dword [eax + 0x10ce0], 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]
movzx ecx, byte [eax]
cmp ecx, 0x2f
jne 0x498e86
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
mov eax, dword [ebp + 8]
push eax
call fcn.00499780
add esp, 0xc
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x498ebe
mov eax, dword [ebp - 0x11c]
jmp 0x49965a
mov byte [ebp - 0x110], 0
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x118], ecx
cmp dword [ebp + 0xc], 0
jne 0x498f13
mov edx, dword [ebp + 8]
cmp dword [edx + 0x24], 0
je 0x498ef6
push 0x2f
mov eax, dword [ebp + 8]
add eax, 0x10b2c
push eax
call fcn.004c2f24
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x498f0a
mov ecx, dword [ebp + 8]
add ecx, 0x10b2c
mov dword [ebp - 4], ecx
jmp 0x498f13
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x498f24
mov eax, dword [ebp - 4]
push eax
call fcn.004c2c28
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
mov dword [ebp - 0x124], edx
cmp dword [ebp - 0x124], 0
je 0x49917a
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
sub ecx, 0x20
mov dword [ebp - 0x134], ecx
cmp dword [ebp - 0x134], 0x5c
ja case.0x498f72.1
mov edx, dword [ebp - 0x134]
movzx eax, byte [edx + 0x499672]
jmp dword [eax*4 + 0x49965e]
mov ecx, dword [ebp - 0x118]
mov byte [ecx], 0
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00499710
add esp, 8
push 0x52a1e4
lea ecx, [ebp - 0x110]
push ecx
call fcn.004bfdc0
add esp, 8
test eax, eax
jne 0x498fb6
mov byte [ebp - 0x110], 0
jmp 0x498fe8
mov edx, dword [ebp + 8]
cmp dword [edx + 0x64], 0
jne 0x498fe8
push 0x52a1e8
lea eax, [ebp - 0x110]
push eax
call fcn.004bfdc0
add esp, 8
test eax, eax
jne 0x498fe8
mov byte [ebp - 0x110], 0
mov dword [ebp - 0x120], 1
movzx ecx, byte [ebp - 0x110]
test ecx, ecx
je 0x49902d
push 2
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00499780
add esp, 0xc
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x11c]
and ecx, 0x7f00
cmp ecx, 0x100
jle 0x49902d
mov eax, dword [ebp - 0x11c]
jmp 0x49965a
lea edx, [ebp - 0x110]
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x114], 0
jmp 0x499175
mov eax, dword [ebp - 0x118]
mov byte [eax], 0x5f
mov ecx, dword [ebp - 0x118]
add ecx, 1
mov dword [ebp - 0x118], ecx
jmp 0x499175
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 0x118]
mov byte [eax], 0x3b
mov ecx, dword [ebp - 0x118]
add ecx, 1
mov dword [ebp - 0x118], ecx
jmp 0x499175
mov edx, dword [ebp + 8]
cmp dword [edx + 0x3c], 0
jne 0x4990b0
mov eax, dword [ebp + 8]
add eax, 0x10b2c
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004996d0
add esp, 8
test eax, eax
je 0x4990ca
mov edx, dword [ebp - 0x118]
mov byte [edx], 0x5f
mov eax, dword [ebp - 0x118]
add eax, 1
mov dword [ebp - 0x118], eax
jmp 0x4990e2
mov ecx, dword [ebp - 0x118]
mov byte [ecx], 0x20
mov edx, dword [ebp - 0x118]
add edx, 1
mov dword [ebp - 0x118], edx
jmp 0x499175
cmp dword [0x52bd88], 1
jle 0x49910c
push 0x157
mov eax, dword [ebp - 0x124]
push eax
call fcn.004c2a2e
add esp, 8
mov dword [ebp - 0x138], eax
jmp 0x499127
mov ecx, dword [ebp - 0x124]
mov edx, dword [str.________________________________H]
movzx eax, word [edx + ecx*2]
and eax, 0x157
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
jne 0x499139
cmp dword [ebp - 0x124], 0x7f
jb 0x499175
mov ecx, dword [0x52bd88]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004c2bb1
add esp, 8
push eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
call fcn.004bed60
add esp, 0xc
mov edx, dword [ebp - 0x118]
push edx
call fcn.004c2c28
add esp, 4
mov dword [ebp - 0x118], eax
jmp 0x498f15
cmp dword [ebp - 0x120], 0
je 0x4991ff
mov eax, dword [ebp + 8]
cmp dword [eax + 0x38], 0
jne 0x4991ff
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x8a28
push ecx
mov edx, dword [ebp + 8]
add edx, 0x10b2c
push edx
call fcn.004a13e0
add esp, 8
push eax
push str.warning:__skipped__..___path_component_s__in__s_n
mov eax, dword [ebp + 8]
add eax, 0xa28
push eax
call fcn.004be348
add esp, 0xc
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xa28
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
call dword [eax + 0x10c90]
add esp, 0x10
mov ecx, dword [ebp - 0x11c]
and ecx, 0xffff80ff
jne 0x4991ff
mov edx, dword [ebp - 0x11c]
and edx, 0x7f00
or edx, 1
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10ce4]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x10b2c
push edx
call fcn.004a4620
add esp, 8
movzx eax, byte [eax]
cmp eax, 0x2f
jne 0x4993f9
push 4
mov ecx, dword [ebp + 8]
add ecx, 0x10b2c
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00499780
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10cdc], 0
je 0x499348
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x38], 0
jne 0x4992a8
push 0
mov edx, dword [ebp + 8]
add edx, 0x8a28
push edx
mov eax, dword [ebp + 8]
add eax, 0x10b2c
push eax
call fcn.004a13e0
add esp, 8
push eax
push str.___creating:___22s_n
mov ecx, dword [ebp + 8]
add ecx, 0xa28
push ecx
call fcn.004be348
add esp, 0xc
push eax
mov edx, dword [ebp + 8]
add edx, 0xa28
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
call dword [ecx + 0x10c90]
add esp, 0x10
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xa24]
mov ecx, dword [eax + 0x14]
and ecx, 0x6f
je 0x499333
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xa24]
mov ecx, dword [eax + 0x14]
and ecx, 0x7f
push ecx
mov edx, dword [ebp + 8]
add edx, 0x10b2c
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x499333
push 1
mov eax, dword [ebp + 8]
add eax, 0x8a28
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x10b2c
push ecx
call fcn.004a13e0
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x52a234
mov edx, dword [ebp + 8]
add edx, 0xa28
push edx
call fcn.004be348
add esp, 0x10
push eax
mov eax, dword [ebp + 8]
add eax, 0xa28
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
call dword [edx + 0x10c90]
add esp, 0x10
mov eax, dword [ebp - 0x11c]
and eax, 0xffff80ff
or eax, 0x1000
jmp 0x49965a
mov eax, dword [ebp + 8]
cmp dword [eax + 0x8c], 1
jne 0x4993e4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa24]
mov eax, dword [edx + 0x14]
and eax, 0x6f
je 0x4993e4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa24]
mov eax, dword [edx + 0x14]
and eax, 0x7f
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x10b2c
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4993e4
push 1
mov edx, dword [ebp + 8]
add edx, 0x8a28
push edx
mov eax, dword [ebp + 8]
add eax, 0x10b2c
push eax
call fcn.004a13e0
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nwarning___d_:_could_not_set_file_attributes_for__s_n
mov ecx, dword [ebp + 8]
add ecx, 0xa28
push ecx
call fcn.004be348
add esp, 0x10
push eax
mov edx, dword [ebp + 8]
add edx, 0xa28
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
call dword [ecx + 0x10c90]
add esp, 0x10
mov eax, dword [ebp - 0x11c]
and eax, 0xffff80ff
or eax, 0x200
jmp 0x49965a
mov edx, dword [ebp - 0x118]
mov byte [edx], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x54], 0
jne 0x499497
cmp dword [ebp - 0x114], 0
je 0x499497
mov ecx, dword [ebp - 0x114]
add ecx, 1
mov dword [ebp - 0x118], ecx
cmp dword [0x52bd88], 1
jle 0x49944c
push 4
mov edx, dword [ebp - 0x118]
movzx eax, byte [edx]
push eax
call fcn.004c2a2e
add esp, 8
mov dword [ebp - 0x13c], eax
jmp 0x499467
mov ecx, dword [ebp - 0x118]
movzx edx, byte [ecx]
mov eax, dword [str.________________________________H]
movzx ecx, word [eax + edx*2]
and ecx, 4
mov dword [ebp - 0x13c], ecx
cmp dword [ebp - 0x13c], 0
je 0x499481
mov edx, dword [ebp - 0x118]
add edx, 1
mov dword [ebp - 0x118], edx
jmp 0x499427
mov eax, dword [ebp - 0x118]
movzx ecx, byte [eax]
test ecx, ecx
jne 0x499497
mov edx, dword [ebp - 0x114]
mov byte [edx], 0
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00499710
add esp, 8
movzx edx, byte [ebp - 0x110]
test edx, edx
jne 0x499519
push 1
mov eax, dword [ebp + 8]
add eax, 0x8a28
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x10b2c
push ecx
call fcn.004a13e0
add esp, 8
push eax
push str.mapname:__conversion_of__s_failed_n
mov edx, dword [ebp + 8]
add edx, 0xa28
push edx
call fcn.004be348
add esp, 0xc
push eax
mov eax, dword [ebp + 8]
add eax, 0xa28
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
call dword [edx + 0x10c90]
add esp, 0x10
mov eax, dword [ebp - 0x11c]
and eax, 0xffff80ff
or eax, 0x300
jmp 0x49965a
push 3
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00499780
add esp, 0xc
push 4
mov edx, dword [ebp + 8]
add edx, 0x10b2c
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00499780
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa24]
mov eax, dword [edx + 0x18]
shr eax, 5
and eax, 1
je 0x499654
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10ce8]
add edx, 0x60
mov byte [ebp - 0x128], dl
push 0x52a2c8
lea eax, [ebp - 0x127]
push eax
call fcn.004be6f0
add esp, 8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x38], 0
jne 0x4995e3
push 0
mov edx, dword [ebp + 8]
add edx, 0x8a28
push edx
mov eax, dword [ebp + 8]
add eax, 0x10b2c
push eax
call fcn.004a13e0
add esp, 8
push eax
lea ecx, [ebp - 0x128]
push ecx
push str.labelling__s___22s_n
mov edx, dword [ebp + 8]
add edx, 0xa28
push edx
call fcn.004be348
add esp, 0x10
push eax
mov eax, dword [ebp + 8]
add eax, 0xa28
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
call dword [edx + 0x10c90]
add esp, 0x10
mov eax, dword [ebp + 8]
add eax, 0x10b2c
push eax
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
test eax, eax
jne 0x499642
push 1
push str.mapname:__error_setting_volume_label_n
mov edx, dword [ebp + 8]
add edx, 0xa28
push edx
call fcn.004be348
add esp, 8
push eax
mov eax, dword [ebp + 8]
add eax, 0xa28
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
call dword [edx + 0x10c90]
add esp, 0x10
mov eax, dword [ebp - 0x11c]
and eax, 0xffff80ff
or eax, 0x300
jmp 0x49965a
mov eax, dword [ebp - 0x11c]
and eax, 0xffff80ff
or eax, 0x200
jmp 0x49965a
mov eax, dword [ebp - 0x11c]
mov esp, ebp
pop ebp
ret