Function at 0x4e1510
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b8
mov dword [ebp - 0x194], 0
mov dword [ebp - 0x2a4], 0xffffffff
mov dword [ebp - 0x2a0], 0
mov eax, dword [ebp + 0x14]
movsx ecx, byte [eax]
cmp ecx, 0x77
jne 0x4e16fd
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 0x29c], 0
jmp 0x4e156b
mov edx, dword [ebp - 0x29c]
add edx, 1
mov dword [ebp - 0x29c], edx
mov eax, dword [ebp + 8]
push eax
call sub.MSVCR80.dll_strlen
add esp, 4
cmp dword [ebp - 0x29c], eax
jge 0x4e1642
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x29c]
movsx edx, byte [ecx]
cmp edx, 0x5c
je 0x4e15a5
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x29c]
movsx ecx, byte [eax]
cmp ecx, 0x2f
jne 0x4e1616
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x29c]
movsx eax, byte [edx + 1]
cmp eax, 0x5c
je 0x4e1614
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x29c]
movsx edx, byte [ecx + 1]
cmp edx, 0x2f
je 0x4e1614
mov eax, dword [ebp - 0x29c]
mov dword [ebp - 0x2a4], eax
mov ecx, dword [ebp - 0x2a8]
mov byte [ebp + ecx - 0x298], 0x5c
mov edx, dword [ebp - 0x2a0]
mov eax, dword [ebp - 0x2a8]
mov dword [ebp + edx*4 - 0x190], eax
mov ecx, dword [ebp - 0x2a0]
add ecx, 1
mov dword [ebp - 0x2a0], ecx
mov edx, dword [ebp - 0x2a8]
add edx, 1
mov dword [ebp - 0x2a8], edx
jmp 0x4e163d
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x29c]
mov ecx, dword [ebp - 0x2a8]
mov dl, byte [eax]
mov byte [ebp + ecx - 0x298], dl
mov eax, dword [ebp - 0x2a8]
add eax, 1
mov dword [ebp - 0x2a8], eax
jmp 0x4e155c
cmp dword [ebp - 0x2a4], 0
jg 0x4e1664
push 0x54bf40
lea ecx, [ebp - 0x298]
push ecx
call sub.MSVCR80.dll_strcpy
add esp, 8
jmp 0x4e16fd
mov dword [ebp - 0x3b4], 0
mov edx, dword [ebp - 0x2a4]
mov byte [ebp + edx - 0x297], 0
mov dword [ebp - 0x3b4], 0
jmp 0x4e1697
mov eax, dword [ebp - 0x3b4]
add eax, 1
mov dword [ebp - 0x3b4], eax
mov ecx, dword [ebp - 0x3b4]
cmp ecx, dword [ebp - 0x2a0]
jge 0x4e16fd
push 0x104
push 0
lea edx, [ebp - 0x3b0]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x3b0]
push ecx
call sub.MSVCR80.dll_strcpy
add esp, 8
mov edx, dword [ebp - 0x3b4]
mov eax, dword [ebp + edx*4 - 0x190]
mov byte [ebp + eax - 0x3af], 0
push 0
lea ecx, [ebp - 0x3b0]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x3b8], eax
jmp 0x4e1688
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.MSVCR80.dll_fopen
add esp, 8
mov dword [ebp - 0x2ac], eax
cmp dword [ebp - 0x2ac], 0
jne 0x4e1733
cmp dword [ebp + 0x18], 0
je 0x4e172b
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0
or eax, 0xffffffff
jmp 0x4e17b3
cmp dword [ebp + 0xc], 0
je 0x4e179c
mov edx, dword [ebp - 0x2ac]
mov eax, dword [edx + 0xc]
and eax, 0x10
test eax, eax
jne 0x4e1790
mov ecx, dword [ebp - 0x194]
cmp ecx, dword [ebp + 0x10]
jge 0x4e1790
mov edx, dword [ebp - 0x2ac]
push edx
call sub.MSVCR80.dll_fgetc
add esp, 4
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x194]
mov byte [ecx], al
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x194]
movsx eax, byte [edx]
cmp eax, 0xffffffff
je 0x4e178e
mov ecx, dword [ebp - 0x194]
add ecx, 1
mov dword [ebp - 0x194], ecx
jmp 0x4e1739
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x194]
mov byte [edx], 0
cmp dword [ebp + 0x18], 0
je 0x4e17ad
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x2ac]
mov dword [eax], ecx
mov eax, dword [ebp - 0x194]
mov esp, ebp
pop ebp
ret