Function at 0x4c04c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d58e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x145c
call fcn.005c8bb0
mov eax, dword [0x644904]
push ebx
mov dword [ebp - 0x14], eax
push esi
push edi
mov ebx, ecx
xor eax, eax
mov byte [ebp - 0x17c], 0
mov ecx, 0x40
lea edi, [ebp - 0x17b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x13f8]
mov dword [ebp - 0x10], esp
push eax
mov dword [ebp - 0x13e8], ebx
mov dword [ebp - 4], 0
call dword [sym.imp.kernel32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x13ec]
movzx edx, word [ebp - 0x13ee]
movzx eax, word [ebp - 0x13f0]
mov esi, dword [sym.imp.msvcr71.dll__snprintf]
push ecx
movzx ecx, word [ebp - 0x13f2]
push edx
movzx edx, word [ebp - 0x13f6]
push eax
movzx eax, word [ebp - 0x13f8]
push ecx
push edx
push eax
push 0x6001a4
lea ecx, [ebp - 0x17c]
push 0x104
push ecx
call esi
add esp, 0x24
push 0
push 0x600194
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
xor eax, eax
mov byte [ebp - 0x3e0], 0
mov ecx, 0x40
lea edi, [ebp - 0x3df]
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x17c]
push edx
stosw word es:[edi], ax
push 0x600194
push 0x5f7c08
stosb byte es:[edi], al
lea eax, [ebp - 0x3e0]
push 0x104
push eax
call esi
mov esi, dword [ebp + 8]
add esp, 0x14
test esi, esi
jl 0x4c085d
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x4c05e2
mov ecx, dword [ebx + 0x20]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jge 0x4c085d
mov eax, dword [ebx + 0x1c]
lea esi, [esi + esi*4]
shl esi, 2
mov ecx, dword [esi + eax + 0x10]
test ecx, ecx
mov dword [ebp + 8], esi
je 0x4c085d
lea ecx, [ebp - 0x3e0]
push 0x600190
push ecx
call dword [sym.imp.msvcr71.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
mov dword [ebp - 0x13e4], edi
je 0x4c085d
xor ebx, ebx
lea esp, [esp]
mov edx, dword [ebp - 0x13e8]
mov eax, dword [edx + 0x1c]
cmp ebx, dword [esi + eax + 0x10]
jge 0x4c087a
lea ecx, [esi + eax]
cmp dword [ecx + 0x10], ebx
ja 0x4c0650
call fcn.004b4840
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 8]
add eax, ebx
cmp edx, eax
ja 0x4c065e
sub eax, edx
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + eax*4]
push eax
lea ecx, [ebp - 0x78]
call fcn.004bca80
sub esp, 0x1c
mov edx, esp
mov dword [ebp - 0x13fc], esp
push edx
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.004b09d0
mov eax, dword [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2dc]
call fcn.004b8df0
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x1434]
mov dword [ebp - 0x180], ecx
push edx
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.00466bb0
push eax
lea ecx, [ebp - 0x2dc]
mov byte [ebp - 4], 3
call fcn.004bdac0
lea ecx, [ebp - 0x1434]
mov byte [ebp - 4], 2
call dword [sym.imp.msvcp71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [0x63ea74], 0x3b6
jne 0x4c07f8
xor eax, eax
mov word [ebp - 0x13e0], 0
mov ecx, 0x1ff
lea edi, [ebp - 0x13de]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov byte [ebp - 0xbe0], 0
mov ecx, 0x1ff
lea edi, [ebp - 0xbdf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1450]
push eax
lea ecx, [ebp - 0x2dc]
call fcn.004b0950
mov ecx, eax
mov byte [ebp - 4], 4
call dword [sym.imp.msvcp71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::length_void_const]
lea ecx, [ebp - 0x1450]
mov esi, eax
mov byte [ebp - 4], 2
call dword [sym.imp.msvcp71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x1418]
push ecx
lea ecx, [ebp - 0x2dc]
call fcn.004b0950
mov ecx, eax
mov byte [ebp - 4], 5
call dword [sym.imp.msvcp71.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Myptr_void_]
push 0x3ff
lea edx, [ebp - 0x13e0]
push edx
push esi
push eax
push 0
push 0x3a8
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
lea ecx, [ebp - 0x1418]
mov byte [ebp - 4], 2
call dword [sym.imp.msvcp71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 0
push 0
push 0x7ff
lea eax, [ebp - 0xbe0]
push eax
lea ecx, [ebp - 0x13e0]
push ecx
mov word [ebp - 0xbe2], 0
call dword [sym.imp.msvcr71.dll_wcslen]
add esp, 4
push eax
lea edx, [ebp - 0x13e0]
push edx
push 0
push 0x3b6
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x13e4]
lea eax, [ebp - 0xbe0]
push eax
push 0x60018c
push ecx
mov byte [ebp - 0x3e1], 0
call dword [sym.imp.msvcr71.dll_fprintf]
mov edi, dword [ebp - 0x13e4]
mov esi, dword [ebp + 8]
add esp, 0xc
jmp 0x4c0836
lea edx, [ebp - 0x146c]
push edx
lea ecx, [ebp - 0x2dc]
call fcn.004b0950
mov ecx, eax
mov byte [ebp - 4], 6
call dword [sym.imp.msvcp71.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Myptr_void_]
push eax
push 0x60018c
push edi
call dword [sym.imp.msvcr71.dll_fprintf]
add esp, 0xc
lea ecx, [ebp - 0x146c]
mov byte [ebp - 4], 2
call dword [sym.imp.msvcp71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x2dc]
mov byte [ebp - 4], 1
call fcn.004b8140
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0
call fcn.00467ee0
inc ebx
jmp 0x4c0630
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.005c8895
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
call dword [sym.imp.msvcr71.dll_fclose]
mov eax, dword [ebp + 0xc]
add esp, 4
test eax, eax
je 0x4c08a0
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x17c]
push edx
push eax
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, 1
jmp 0x4c085f