Function at 0x10001643
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x24
push 0x40
pop ebx
push ebx
mov dword [ebp - 4], 1
call edi
mov ecx, dword [ebp + 0x14]
mov esi, eax
mov eax, dword [ebp + 0x18]
mov dword [0x10003004], eax
mov eax, dword [ebp + 0xc]
mov dword [0x1000300c], ecx
mov ecx, dword [ebp + 0x10]
push eax
push ebx
mov dword [0x10003008], eax
mov dword [0x10003010], ecx
call edi
push dword [ebp + 0xc]
mov dword [esi], eax
push ebx
call edi
push dword [ebp + 0xc]
mov dword [esi + 4], eax
push ebx
call edi
push dword [esi]
or dword [esi + 0x20], 0xffffffff
xor ebx, ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xffffff
mov dword [esi + 0xc], ebx
call fcn.100018af
test eax, eax
jne 0x100017eb
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov eax, dword [esi]
cmp byte [eax], 0x2f
jne 0x100017eb
push str._ASYNC
push eax
call edi
test eax, eax
jne 0x100016e1
mov dword [ebp - 4], ebx
jmp 0x100017d7
push str._DISABLEFSR
push dword [esi]
call edi
test eax, eax
jne 0x100016fa
mov dword [esi + 0xc], 1
jmp 0x100017d7
push str._TOSTACK
push dword [esi]
call edi
test eax, eax
jne 0x10001713
mov dword [esi + 8], 1
jmp 0x100017d7
push str._TOWINDOW
push dword [esi]
call edi
test eax, eax
jne 0x1000172c
mov dword [esi + 8], 2
jmp 0x100017d7
push str._TOFUNC
push dword [esi]
call edi
test eax, eax
jne 0x10001745
mov dword [esi + 8], 3
jmp 0x100017d7
push str._DETAILED
push dword [esi]
call edi
test eax, eax
jne 0x10001792
mov dword [esi + 8], 2
cmp dword [ebp + 8], ebx
je 0x100017d7
push ebx
push str.32770
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_FindWindowExA]
cmp eax, ebx
je 0x100017d7
push 0x3f8
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push 0x100020e0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x100017d7
push 0x3d
push dword [esi]
call section..text
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x100017d5
mov byte [ebx], 0
push str._TIMEOUT
push dword [esi]
inc ebx
call edi
test eax, eax
jne 0x100017bf
push ebx
call fcn.10001934
mov dword [esi + 0x14], eax
jmp 0x100017d5
push str._ENDFUNC
push dword [esi]
call edi
test eax, eax
jne 0x100017d5
push ebx
call fcn.10001934
mov dword [esi + 0x20], eax
xor ebx, ebx
mov eax, dword [esi]
mov byte [eax], 0
push dword [esi]
call fcn.100018af
test eax, eax
je 0x100016c2
push dword [esi + 4]
call fcn.100018af
test eax, eax
jne 0x1000180b
mov eax, dword [esi + 0x10]
cmp byte [eax], 0
jne 0x1000180b
cmp dword [esi + 8], 1
je 0x1000180b
push eax
call fcn.100018af
cmp dword [esi + 8], 2
jne 0x10001829
push dword [esi + 0x10]
call fcn.10001934
push dword [ebp + 0xc]
mov dword [esi + 0x18], eax
push dword [esi + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
cmp dword [esi + 8], 3
jne 0x1000183a
push dword [esi + 0x10]
call fcn.10001934
mov dword [esi + 0x1c], eax
lea eax, [ebp - 8]
push eax
push ebx
push esi
push 0x10001018
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea eax, [ebp - 0x18]
push 0x100020f0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
call fcn.100018ef
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x1000188a
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sym.execDos.dll_wait
add esp, 0x14
leave
ret
mov eax, dword [ebp + 0x18]
push 0x10001599
push dword [section..data]
call dword [eax + 0xc]
leave
ret