Function at 0x100240e0
Capabilities:
Create directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
cmp dword [0x1005a2dc], 0
push ebx
push esi
push edi
jne 0x1002438f
mov esi, dword [ebp + 8]
test esi, esi
je 0x1002438f
cmp dword [0x1005a2d8], 0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
jne 0x10024271
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
push str.login.yota.ru
push esi
call edi
add esp, 8
test eax, eax
je 0x1002438f
push str.IDToken1
push esi
call edi
add esp, 8
test eax, eax
je 0x1002438f
push str.IDToken2
push esi
call edi
add esp, 8
test eax, eax
je 0x1002438f
xor eax, eax
jmp 0x10024160
mov cl, byte [eax + 0x10059d68]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x10024160
push 0x1005d2a0
call ebx
mov eax, 0x1005d2a0
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10024180
lea edi, [ebp - 0x108]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10024192
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x1005d2a0
rep movsb byte es:[edi], byte [esi]
call ebx
xor eax, eax
mov cl, byte [eax + 0x10059d68]
mov byte [ebp + eax - 0x210], cl
inc eax
test cl, cl
jne 0x100241b1
mov eax, 0x1005d2a0
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100241d0
lea edi, [ebp - 0x210]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100241e0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x210]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.10007400
push 0
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1002423d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x10024236
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, dword [ebp + 8]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10024252
sub eax, edx
push eax
push esi
mov eax, str.pass.txt
call fcn.10007140
mov dword [0x1005a2d8], 1
push str.YotaConfirmForm_5Bpassword_5D
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x1002438f
xor eax, eax
lea ebx, [ebx]
mov cl, byte [eax + 0x10059d68]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x10024290
push 0x1005d2a0
call ebx
mov eax, 0x1005d2a0
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100242b0
lea edi, [ebp - 0x108]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100242c2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x10024311
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1002430a
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, dword [ebp + 8]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10024326
sub eax, edx
push eax
push esi
mov eax, str.pass2.txt
call fcn.10007140
push str.LocalEAF799BF_89ea_4fe1_9A0D_95CD39DC0214
push 0
push 0
mov dword [0x1005a2dc], 1
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x1002438f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [ebp + 8]
push ecx
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1002438f
test byte [ebp + 8], 2
jne 0x1002438f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4