Function at 0x40e2b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4806cd
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x496004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
shl esi, 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
xor edi, esi
shl edi, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor eax, edi
xor edi, edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], edi
lea edx, [edi + 2]
nop
mov eax, dword [ebp - 0x24]
xor esi, esi
cmp word [eax], si
je 0x40e328
nop word [eax + eax]
inc esi
cmp word [eax + esi*2], 0
jne 0x40e320
cmp esi, dword [ebx + 8]
jbe 0x40e35b
xor ecx, ecx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436c01
add esp, 4
mov edi, eax
push dword [ebx]
call fcn.00436a97
mov eax, dword [ebp - 0x24]
add esp, 4
mov dword [ebx], edi
mov edi, dword [ebp - 0x30]
mov dword [ebx + 8], esi
mov dword [ebx + 4], esi
lea esi, [esi*2 + 2]
push esi
push eax
push dword [ebx]
call fcn.00441f60
mov esi, dword [ebp - 0x28]
add esp, 0xc
mov ecx, esi
mov byte [ebp - 0x18], 0
and ecx, 0xf
mov edx, esi
shr edx, 4
cmp ecx, 0xa
sbb al, al
add cl, 0x37
and al, 0xf9
add al, cl
mov ecx, edx
and ecx, 0xf
mov byte [ebp - 0x20], al
shr edx, 4
cmp ecx, 0xa
sbb al, al
add cl, 0x37
and al, 0xf9
add al, cl
mov ecx, edx
and ecx, 0xf
mov byte [ebp - 0x1f], al
shr edx, 4
cmp ecx, 0xa
sbb al, al
add cl, 0x37
and al, 0xf9
add al, cl
mov ecx, edx
and ecx, 0xf
mov byte [ebp - 0x1e], al
shr edx, 4
cmp ecx, 0xa
sbb al, al
add cl, 0x37
and al, 0xf9
add al, cl
mov ecx, edx
and ecx, 0xf
mov byte [ebp - 0x1d], al
shr edx, 4
cmp ecx, 0xa
sbb al, al
add cl, 0x37
and al, 0xf9
add al, cl
mov ecx, edx
and ecx, 0xf
mov byte [ebp - 0x1c], al
shr edx, 4
cmp ecx, 0xa
sbb al, al
add cl, 0x37
and al, 0xf9
add al, cl
mov ecx, edx
and ecx, 0xf
mov byte [ebp - 0x1b], al
cmp ecx, 0xa
sbb al, al
add cl, 0x37
and al, 0xf9
shr edx, 4
add al, cl
cmp edx, 0xa
mov byte [ebp - 0x1a], al
sbb al, al
add dl, 0x37
and al, 0xf9
add al, dl
mov byte [ebp - 0x19], al
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call fcn.0040a490
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 2
mov dword [ebp - 0x5c], 0
mov ecx, 1
mov dword [ebp - 0x60], 0
cmove eax, ecx
mov dword [ebp - 0x54], 0
add esi, eax
mov dword [ebp - 0x58], 0
xorps xmm0, xmm0
mov dword [ebp - 0x28], esi
mov esi, dword [ebx]
push 8
movlpd qword [ebp - 0x68], xmm0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x48], 0
mov word [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
call fcn.00436c01
xor ecx, ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0
add esp, 4
mov dword [ebp - 0x38], 3
mov word [eax], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x68]
push esi
call fcn.0040f070
mov dword [ebp - 4], 0xffffffff
mov bl, al
push dword [ebp - 0x40]
call fcn.00436a97
add esp, 4
test bl, bl
je 0x40e4e7
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [ebp - 0x2c]
jmp 0x40e539
cmp byte [0x498871], 0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx]
jne 0x40e51a
mov edx, eax
lea ecx, [ebp - 0x74]
call fcn.0040a910
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x74]
mov esi, eax
call fcn.00436a97
add esp, 4
test esi, esi
jmp 0x40e525
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e55d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x40e539
cmp eax, 0xb7
jne 0x40e54b
inc edi
mov edx, 2
mov dword [ebp - 0x30], edi
cmp edi, 0x64
jb 0x40e310
mov eax, dword [ebx]
xor ecx, ecx
mov dword [ebx + 4], 0
mov word [eax], cx
xor al, al
jmp 0x40e55f
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00436a89
mov esp, ebp
pop ebp
ret 8