Function at 0x4d2000
Capabilities:
Create directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x848
mov eax, dword [0x4ad2d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 0x740], 0
push 0x103
push 0
lea eax, [ebp - 0x73f]
push eax
call fcn.00499430
add esp, 0xc
mov byte [ebp - 0x428], 0
push 0x103
push 0
lea ecx, [ebp - 0x427]
push ecx
call fcn.00499430
add esp, 0xc
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea edx, [ebp - 0x10f]
push edx
call fcn.00499430
add esp, 0xc
mov byte [ebp - 0x218], 0
push 0x103
push 0
lea eax, [ebp - 0x217]
push eax
call fcn.00499430
add esp, 0xc
mov byte [ebp - 0x638], 0
push 0x103
push 0
lea ecx, [ebp - 0x637]
push ecx
call fcn.00499430
add esp, 0xc
mov byte [ebp - 0x848], 0
push 0x103
push 0
lea edx, [ebp - 0x847]
push edx
call fcn.00499430
add esp, 0xc
mov byte [ebp - 0x530], 0
push 0x103
push 0
lea eax, [ebp - 0x52f]
push eax
call fcn.00499430
add esp, 0xc
mov byte [ebp - 0x320], 0
push 0x103
push 0
lea ecx, [ebp - 0x31f]
push ecx
call fcn.00499430
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x110]
push eax
push str.CCS__s_temp
call fcn.0048a5f0
add esp, 4
push eax
push 0x103
lea ecx, [ebp - 0x428]
push ecx
call fcn.004919a0
add esp, 0x10
push 0x4bcc89
lea edx, [ebp - 0x428]
push edx
push str.CCS__s_s
call fcn.0048a5f0
add esp, 4
push eax
push 0x103
lea eax, [ebp - 0x848]
push eax
call fcn.004919a0
add esp, 0x14
lea ecx, [ebp - 0x428]
push ecx
push str.CCS__s_browser.his
call fcn.0048a5f0
add esp, 4
push eax
push 0x103
lea edx, [ebp - 0x320]
push edx
call fcn.004919a0
add esp, 0x10
push 0
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x10
lea ecx, [ebp - 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
lea edx, [ebp - 0x848]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x10
lea eax, [ebp - 0x848]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x848]
push ecx
call fcn.004020d0
add esp, 4
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x4bcc80
lea edx, [ebp - 0x110]
push edx
push str.CCS__s_sMT.tmp
call fcn.0048a5f0
add esp, 4
push eax
push 0x103
lea eax, [ebp - 0x638]
push eax
call fcn.004919a0
add esp, 0x14
push 0x4bcc89
push 0x4bcc80
push str.CCS__s__s
call fcn.0048a5f0
add esp, 4
push eax
push 0x103
lea ecx, [ebp - 0x218]
push ecx
call fcn.004919a0
add esp, 0x14
push str.CCS_abcd_123
call fcn.0048a5f0
add esp, 4
push eax
lea edx, [ebp - 0x638]
push edx
call fcn.00491210
add esp, 8
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x428]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00491380
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
call fcn.004912e0
add esp, 4
lea ecx, [ebp - 0x428]
push ecx
call fcn.00402a00
add esp, 4
call fcn.00402e00
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ebp - 0x75], dl
push ebp
mov ebp, esp
sub esp, 0x38
push esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
movzx ecx, byte [ebp + 0x14]
cmp ecx, 1
jne 0x4d22e5
mov dword [ebp - 0x20], 1
jmp 0x4d2343
mov dword [ebp - 0x20], 2
movzx edx, byte [ebp + 0x14]
mov eax, 3
sub eax, edx
mov dword [ebp - 8], eax
jmp 0x4d2305
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x10]
jge 0x4d231c
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x4d231c
jmp 0x4d22fc
mov edx, dword [ebp - 8]
xor eax, eax
cmp edx, dword [ebp + 0x10]
setl al
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
xor ecx, 1
add ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
movzx edx, byte [ebp + 0x14]
and edx, 1
add edx, dword [ebp + 8]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0xc]
jae 0x4d2368
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
movzx eax, byte [edx + 0x4a6c30]
and eax, 1
je 0x4d2368
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x20]
mov dword [ebp + 8], ecx
jmp 0x4d2343
mov edx, dword [ebp + 8]
cmp edx, dword [ebp - 0xc]
jae 0x4d23a1
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
cmp ecx, 0x2d
jne 0x4d238d
mov dword [ebp - 0x28], 1
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x20]
mov dword [ebp + 8], edx
jmp 0x4d23a1
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
cmp ecx, 0x2b
jne 0x4d23a1
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x20]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 0xc]
jae 0x4d23c5
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
cmp eax, 0x30
jne 0x4d23c5
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x20]
mov dword [ebp + 8], ecx
jmp 0x4d23a7
mov dword [ebp - 8], 0
jmp 0x4d23d7
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x20]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jae 0x4d2425
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx]
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0x30
jl 0x4d2425
cmp dword [ebp - 0x2c], 0x39
jg 0x4d2425
push 0
push 0xa
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0049e840
mov ecx, eax
mov esi, edx
mov eax, dword [ebp - 0x2c]
cdq
add ecx, eax
adc esi, edx
sub ecx, 0x30
sbb esi, 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], esi
jmp 0x4d23ce
cmp dword [ebp - 0x14], 0x7fffffff
jb 0x4d246a
ja 0x4d2436
cmp dword [ebp - 0x18], 0xffffffff
jbe 0x4d246a
cmp dword [ebp - 0x28], 0
je 0x4d244c
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x80000000
jmp 0x4d245a
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x30], 0x7fffffff
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x34]
mov dword [edx], eax
mov ecx, dword [ebp - 0x30]
mov dword [edx + 4], ecx
jmp 0x4d2495
cmp dword [ebp - 0x28], 0
je 0x4d2487
mov edx, dword [ebp - 0x18]
neg edx
mov eax, dword [ebp - 0x14]
adc eax, 0
neg eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edx
mov dword [ecx + 4], eax
jmp 0x4d2495
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov ecx, dword [ebp - 0x14]
mov dword [edx + 4], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
cmp edx, dword [ebp - 0xc]
jb 0x4d24b4
cmp dword [ebp - 8], 0
jne 0x4d24ae
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp + 8]
je 0x4d24b4
cmp dword [ebp - 0x1c], 0
je 0x4d24bd
mov dword [ebp - 4], 1
jmp 0x4d24c4
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
imul ecx, ecx, 0x13
cmp dword [ebp - 8], ecx
jle 0x4d24d8
mov eax, 2
jmp 0x4d2531
mov edx, dword [ebp - 0x20]
imul edx, edx, 0x13
cmp dword [ebp - 8], edx
jge 0x4d24ea
mov eax, dword [ebp - 4]
jmp 0x4d2531
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040b9e0
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x4d250a
mov eax, dword [ebp - 4]
jmp 0x4d2531
cmp dword [ebp - 0x2c], 0
jle 0x4d2519
mov eax, 2
jmp 0x4d2531
cmp dword [ebp - 0x28], 0
je 0x4d2527
mov edx, dword [ebp - 4]
mov dword [ebp - 0x38], edx
jmp 0x4d252e
mov dword [ebp - 0x38], 3
mov eax, dword [ebp - 0x38]
pop esi
mov esp, ebp
pop ebp
ret