Function at 0x4c65c9
Capabilities:
Create directory

Disassembly:
mov eax, 0x571e8d
call fcn.0051f140
mov eax, 0x149c
call fcn.0051f470
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
je 0x4c6f4f
cmp dword [ebp + 0xc], ebx
je 0x4c6f4f
mov al, byte [0x5d8050]
mov ecx, 0xff
mov byte [ebp - 0x66c], al
xor eax, eax
lea edi, [ebp - 0x66b]
mov esi, dword [sym.imp.MSVCRT.dll_strncpy]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x400
lea eax, [ebp - 0x66c]
push edi
push dword [ebp + 0xc]
push eax
call esi
add esp, 0xc
call dword [sym.imp.GraphicData.dll_GameDataSetQuery]
mov edx, dword [eax]
push 0x5c5f1c
mov ecx, eax
call dword [edx + 0x34]
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x4c667a
mov byte [ebp + 0xe], 0x5b
mov byte [ebp + 0xf], 0x5d
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x14]
push 0x3f
mov al, byte [ebp + eax + 0xe]
push eax
lea eax, [ebp - 0x66c]
push eax
call fcn.00518ea5
add esp, 0xc
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jl 0x4c6658
mov ecx, dword [ebp - 0x10]
call fcn.004d24fe
and eax, edi
or eax, ebx
je 0x4c66cd
movzx eax, word [ebp + 0x18]
sub eax, 0x7d0
je 0x4c66c6
sub eax, 3
je 0x4c66cd
call dword [sym.imp.GraphicData.dll_GameDataSetQuery]
mov edx, dword [eax]
push ebx
push ebx
push 0xff0000
push 0x7d5
push 0x186b9
mov ecx, eax
call dword [edx + 0x3c]
push eax
mov ecx, 0x5d85a0
call fcn.0049ac45
jmp 0x4c6f4f
mov dword [ebp + 0x18], 0x7dd
push 0x10
lea eax, [ebp - 0x2c]
push 0x5dac58
push eax
call esi
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x1d], bl
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x10
cmp byte [ebp - 0x66c], 0x2f
jne 0x4c6c1b
lea esi, [ebp + eax - 0x2c]
lea eax, [esi - 4]
cmp eax, esi
je 0x4c6718
mov edi, str._PM_
sub edi, eax
mov cl, byte [eax]
cmp cl, byte [edi + eax]
jne 0x4c6c1b
inc eax
cmp eax, esi
jne 0x4c6708
mov al, byte [0x5d8050]
push 0x3f
mov byte [ebp - 0x12c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [sym.imp.MSVCRT.dll_sscanf]
stosb byte es:[edi], al
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x66b]
push 0x5c5c2c
push eax
call esi
add esp, 0xc
cmp eax, 1
jne 0x4c6c1b
mov edi, dword [sym.imp.MSVCRT.dll__stricmp]
lea eax, [ebp - 0x12c]
push str.scrshot
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4c67d6
mov al, byte [0x5d8050]
push 0x3f
mov byte [ebp - 0x22c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x22b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x66b]
push 0x5c5978
push eax
call esi
add esp, 0x10
cmp eax, 2
jne 0x4c6c1b
push ebx
push str.ScreenShot
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.graphic.dll_public:_static_void___cdecl_CMyBitmap::ScreenShot_char_const__]
pop ecx
jmp 0x4c6f4f
lea eax, [ebp - 0x12c]
push str.break
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4c67f9
mov ecx, 0x5df010
call fcn.004dce2f
jmp 0x4c6c1b
lea eax, [ebp - 0x12c]
push str.color
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4c687d
fldz
lea eax, [ebp - 0x18]
fstp dword [ebp - 0x1c]
push eax
lea eax, [ebp + 0xc]
fldz
push eax
lea eax, [ebp - 0x14]
fstp dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
fldz
push eax
lea eax, [ebp - 0x12c]
fstp dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x66b]
fldz
push str._s__f__f__f__f
push eax
fstp dword [ebp - 0x18]
call esi
add esp, 0x1c
cmp eax, 5
jne 0x4c6c1b
fld dword [ebp + 0xc]
push ecx
fstp dword [esp]
fld dword [ebp - 0x14]
push ecx
fstp dword [esp]
fld dword [ebp - 0x1c]
push ecx
fstp dword [esp]
fld dword [ebp - 0x18]
push ecx
mov ecx, 0x5dabc0
fstp dword [esp]
call fcn.004d2869
jmp 0x4c6c1b
lea eax, [ebp - 0x12c]
push str.look
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4c68cb
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x66b]
push str._s__d
push eax
call esi
add esp, 0x10
cmp eax, 2
jne 0x4c6c1b
push dword [ebp + 0xc]
mov ecx, 0x5dabc0
call fcn.004c2951
jmp 0x4c6c1b
lea eax, [ebp - 0x12c]
push str.mount
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4c6919
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x66b]
push str._s__d
push eax
call esi
add esp, 0x10
cmp eax, 2
jne 0x4c6c1b
push dword [ebp + 0xc]
mov ecx, 0x5dabc0
call fcn.004d2b21
jmp 0x4c6c1b
lea eax, [ebp - 0x12c]
push str.rolescale
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4c6969
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x66b]
push str._s__d
push eax
call esi
add esp, 0x10
cmp eax, 2
jne 0x4c6c1b
fild dword [ebp + 0xc]
fmul dword [0x579320]
fstp dword [0x5cb22c]
jmp 0x4c6c1b
lea eax, [ebp - 0x12c]
push 0x5cb3e4
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4c69d9
mov al, byte [0x5d8050]
push 0x3f
mov byte [ebp - 0x22c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x22b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.Feb_26_2009
push str.20:34:27
lea eax, [ebp - 0x22c]
push str.version__s__s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x22c]
push ebx
push ebx
push 0xff0000
push 0x7d5
push eax
mov ecx, 0x5d85a0
call fcn.0049ac45
jmp 0x4c6c1b
lea eax, [ebp - 0x12c]
push str.scale
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4c6a2b
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2710
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x66b]
push str._s__u
push eax
call esi
add esp, 0x10
cmp eax, 2
jne 0x4c6c1b
push dword [ebp + 0xc]
mov ecx, 0x5d91d0
call fcn.004a09a6
jmp 0x4c6c1b
lea eax, [ebp - 0x12c]
push str.data
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4c6a7e
mov al, byte [0x5d8050]
push 0x3f
mov byte [ebp - 0x22c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x22b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x66b]
push 0x5c5978
push eax
call esi
add esp, 0x10
jmp 0x4c6c1b
lea eax, [ebp - 0x12c]
push str.addeffect
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4c6b09
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x66b]
push 0x5c5978
push eax
call esi
add esp, 0x10
cmp eax, 2
jne 0x4c6c1b
lea eax, [ebp - 0x26c]
push 0x5cb394
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
je 0x4c6ae8
lea eax, [ebp - 0x26c]
mov ecx, 0x5dabc0
push eax
call fcn.004d2f27
jmp 0x4c6c1b
mov ecx, dword [0x5db2d8]
cmp ecx, ebx
je 0x4c6c1b
mov eax, dword [ecx]
lea edx, [ebp - 0x26c]
push 1
push edx
call dword [eax + 0x10]
jmp 0x4c6c1b
lea eax, [ebp - 0x12c]
push str.addaction
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4c6b6c
lea eax, [ebp + 0xc]
mov dword [ebp - 0x18], ebx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x66b]
push str._s__d__d
push eax
mov dword [ebp + 0xc], 7
call esi
add esp, 0x14
cmp eax, 3
jne 0x4c6c1b
mov eax, dword [ebp + 0xc]
push ebx
push ebx
push 8
cdq
pop ecx
idiv ecx
mov ecx, dword [ebp - 0x10]
push edx
push dword [ebp - 0x18]
call fcn.00502180
jmp 0x4c6c1b
lea eax, [ebp - 0x12c]
push str.addmsg
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4c6bd6
mov al, byte [0x5d8050]
push 0x3f
mov byte [ebp - 0x22c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x22b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x66b]
push 0x5c5978
push eax
call esi
add esp, 0x10
cmp eax, 2
jne 0x4c6c1b
push ebx
push ebx
push 0xff0000
push 0x7d5
lea eax, [ebp - 0x22c]
jmp 0x4c69c9
lea eax, [ebp - 0x12c]
push str.mapcolor
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4c6c1b
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x66b]
push str._s__x
push eax
call esi
add esp, 0x10
cmp eax, 2
jne 0x4c6c1b
push dword [ebp + 0xc]
mov ecx, 0x5d91d0
call fcn.004a094d
mov edi, dword [ebp + 0x18]
cmp di, 0x7d2
jne 0x4c6cda
call sub.WINMM.dll_timeGetTime
mov ecx, dword [ebp - 0x10]
add ecx, 0xd50
mov edx, dword [ecx]
add edx, 0x1388
cmp eax, edx
jbe 0x4c6f01
mov dword [ecx], eax
mov al, byte [0x5d8050]
push 0x3f
mov byte [ebp - 0x22c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x22b]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x10]
lea esi, [eax + 0x98]
lea eax, [ebp - 0x66c]
push esi
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [ebp - 0xc80]
call fcn.004fde83
push ebx
push ebx
push dword [ebp + 0x1c]
lea eax, [ebp - 0x22c]
lea ecx, [ebp - 0xc80]
mov dword [ebp - 4], ebx
push 0x7d2
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
push esi
call fcn.004fdf3f
test eax, eax
je 0x4c6ccb
lea ecx, [ebp - 0xc80]
call fcn.004dd0dd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc80]
jmp 0x4c6efc
mov esi, 0x7de
cmp di, si
jne 0x4c6d85
mov al, byte [0x5d8050]
mov ecx, 0xff
mov byte [ebp - 0xc6c], al
xor eax, eax
lea edi, [ebp - 0xc6b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0xc6c]
push eax
call sub.MSVCRT.dll_strcpy
push 0x5f
lea eax, [ebp - 0xc6c]
push 0x20
push eax
call fcn.00518ea5
add esp, 0x14
lea ecx, [ebp - 0x1094]
call fcn.004fde83
push ebx
push ebx
push dword [ebp + 0x1c]
lea eax, [ebp - 0x66c]
lea ecx, [ebp - 0x1094]
mov dword [ebp - 4], 1
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x10]
push dword [ebp + 8]
add eax, 0x98
push eax
call fcn.004fdf3f
test eax, eax
je 0x4c6d76
lea ecx, [ebp - 0x1094]
call fcn.004dd0dd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1094]
jmp 0x4c6efc
lea eax, [ebp - 0x66c]
push eax
call fcn.004f6368
mov ecx, eax
call fcn.004f63cd
cmp dword [0x5dec40], 3
je 0x4c6f01
cmp di, 0x7d1
jne 0x4c6e36
push dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
call fcn.004e7d0e
cmp eax, ebx
je 0x4c6e36
cmp dword [eax + 0x18], ebx
jne 0x4c6e36
mov al, byte [0x5d8050]
push 0x7f
mov byte [ebp - 0x86c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x86b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x86c]
push dword [ebp + 8]
push 0x5c5978
push 0x200
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x86c]
mov ecx, 0x5d85d8
mov byte [ebp - 0x66d], bl
push eax
call fcn.004f69f9
mov ecx, 0x5d85e4
call fcn.004f4191
dec eax
push eax
push 0x452
call fcn.004c2498
pop ecx
jmp 0x4c67d0
lea eax, [ebp - 0x66c]
mov ecx, 0x5dabc0
push eax
call fcn.004e6dc8
test al, al
je 0x4c6e74
call dword [sym.imp.GraphicData.dll_GameDataSetQuery]
mov edx, dword [eax]
push ebx
push ebx
push 0xff0000
push 0x7d5
push 0x280f
mov ecx, eax
call dword [edx + 0x3c]
push eax
mov ecx, 0x5d85a0
call fcn.0049ac45
lea ecx, [ebp - 0x14a8]
call fcn.004fde83
push ebx
push ebx
push dword [ebp + 0x1c]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x66c]
lea ecx, [ebp - 0x14a8]
push edi
mov dword [ebp - 4], 2
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x10]
add eax, 0x98
push esi
push eax
call fcn.004fdf3f
test eax, eax
je 0x4c6ec0
lea ecx, [ebp - 0x14a8]
call fcn.004dd0dd
movzx eax, di
sub eax, 0x7d1
je 0x4c6ed2
dec eax
dec eax
jne 0x4c6ef2
push 1
jmp 0x4c6ede
push esi
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x4c6ef2
push ebx
lea eax, [ebp - 0x66c]
push eax
push esi
call fcn.004c226c
mov ecx, eax
call fcn.004c230a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14a8]
call fcn.004fdf01
call fcn.0051859c
push eax
mov esi, dword [ebp - 0x10]
push dword [ebp + 0x18]
lea eax, [ebp - 0x66c]
mov ecx, 0x5d85a0
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push eax
lea eax, [esi + 0x98]
push dword [ebp + 0x10]
push dword [ebp + 8]
push eax
call fcn.0049a279
cmp word [ebp + 0x18], 0x7d2
je 0x4c6f4f
cmp word [ebp + 0x18], 0x7d1
je 0x4c6f4f
lea eax, [ebp - 0x66c]
mov ecx, esi
push eax
call fcn.004d226e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18