Function at 0x4ba430
Capabilities:
Create directory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
mov ebx, ecx
sub esp, 0x3c
mov dword [esp + 0x14], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x1c], eax
call eax
mov esi, eax
shl esi, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
shl eax, 0xe
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x18], 0x64
xor esi, eax
jmp 0x4ba4cc
mov ecx, ebx
mov dword [esp], str..tmp
call fcn.00474870
mov eax, dword [ebx]
sub esp, 4
mov dword [esp], eax
call fcn.004bcaf0
test al, al
jne 0x4ba4f9
mov eax, dword [ebx]
mov dword [esp + 4], 0
mov ecx, ebp
mov dword [esp], eax
call fcn.004bd840
sub esp, 8
test al, al
jne 0x4ba65e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x4ba4c0
cmp eax, 0xb7
jne 0x4ba515
sub dword [esp + 0x18], 1
mov edi, 1
je 0x4ba515
mov eax, dword [esp + 0x14]
mov ecx, ebx
mov dword [esp], eax
call fcn.004741d0
mov eax, edi
sub esp, 4
test al, al
jne 0x4ba530
test ebp, ebp
jne 0x4ba470
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.004bcaf0
test al, al
je 0x4ba640
mov dword [esp], 0xb7
mov edi, 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
sub dword [esp + 0x18], 1
jne 0x4ba4cc
mov eax, dword [ebx]
xor edx, edx
mov dword [ebx + 4], 0
mov word [eax], dx
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, esi
mov edx, esi
mov byte [esp + 0x28], 0
and ecx, 0xf
shr edx, 4
lea edi, [ecx + 0x37]
lea eax, [ecx + 0x30]
cmp ecx, 0xa
cmovae eax, edi
and edx, 0xf
lea edi, [edx + 0x37]
lea ecx, [edx + 0x30]
mov byte [esp + 0x20], al
mov eax, esi
shr eax, 8
cmp edx, 0xa
mov edx, esi
cmovae ecx, edi
and eax, 0xf
shr edx, 0xc
lea edi, [eax + 0x37]
mov byte [esp + 0x21], cl
lea ecx, [eax + 0x30]
cmp eax, 0xa
mov eax, esi
cmovae ecx, edi
and edx, 0xf
shr eax, 0x10
lea edi, [edx + 0x37]
mov byte [esp + 0x22], cl
lea ecx, [edx + 0x30]
cmp edx, 0xa
mov edx, esi
cmovae ecx, edi
and eax, 0xf
shr edx, 0x14
lea edi, [eax + 0x37]
mov byte [esp + 0x23], cl
lea ecx, [eax + 0x30]
cmp eax, 0xa
mov eax, esi
cmovae ecx, edi
and edx, 0xf
shr eax, 0x18
lea edi, [edx + 0x37]
mov byte [esp + 0x24], cl
lea ecx, [edx + 0x30]
cmp edx, 0xa
mov edx, esi
cmovae ecx, edi
and eax, 0xf
shr edx, 0x1c
lea edi, [eax + 0x37]
mov byte [esp + 0x25], cl
lea ecx, [eax + 0x30]
cmp eax, 0xa
lea eax, [edx + 0x30]
cmovae ecx, edi
cmp edx, 0xa
mov byte [esp + 0x26], cl
lea ecx, [edx + 0x37]
cmovae eax, ecx
test ebp, ebp
mov byte [esp + 0x27], al
je 0x4ba613
mov eax, dword [ebx + 4]
cmp dword [ebx + 8], eax
je 0x4ba670
mov edx, dword [ebx]
mov ecx, 0x2e
xor edi, edi
mov word [edx + eax*2], cx
mov word [edx + eax*2 + 2], di
add eax, 1
mov dword [ebx + 4], eax
lea eax, [esp + 0x20]
mov ecx, ebx
mov edi, 1
mov dword [esp], eax
call fcn.00474870
sub esp, 4
mov eax, dword [esp + 0x1c]
call eax
add eax, 2
cmove eax, edi
add esi, eax
jmp 0x4ba4e3
mov eax, dword [ebx]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
je 0x4ba4ae
add esp, 0x3c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, ebx
call fcn.004739d0
mov eax, dword [ebx + 4]
jmp 0x4ba5fb