Function at 0x4046d8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
jmp 0x404730
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
sub esp, 0xc
push eax
call sym._strlen
add esp, 0x10
mov ebx, eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov eax, dword [eax]
sub esp, 0xc
push eax
call sym._strlen
add esp, 0x10
mov edx, eax
mov eax, edx
add eax, eax
add eax, edx
lea edx, [ebx + eax]
mov eax, dword [ebp - 0x18]
lea eax, [edx + eax]
add eax, 2
mov dword [ebp - 0x18], eax
add dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
jne 0x4046ee
mov eax, dword [ebp - 0x18]
sub esp, 0xc
push eax
call sym._my_malloc
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov byte [eax], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x404894
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
jmp 0x404880
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
sub esp, 0xc
push eax
call sym._strlen
add esp, 0x10
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
sub esp, 4
push edx
push eax
push dword [ebp - 0x10]
call sym._memmove
add esp, 0x10
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov byte [eax], 0x3d
inc dword [ebp - 0x10]
add dword [ebp + 0xc], 4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x404866
mov eax, dword [ebp - 8]
mov al, byte [eax]
movsx eax, al
sub esp, 0xc
push eax
call sym._isalnum
add esp, 0x10
test eax, eax
jne 0x4047e8
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x5f
je 0x4047e8
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x2e
je 0x4047e8
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x2d
jne 0x4047fa
mov eax, dword [ebp - 8]
mov dl, byte [eax]
mov eax, dword [ebp - 0x10]
mov byte [eax], dl
inc dword [ebp - 0x10]
inc dword [ebp - 8]
jmp 0x404866
mov eax, dword [str.0123456789abcdef]
mov dword [ebp - 0x2d], eax
mov eax, dword [0x40ceef]
mov dword [ebp - 0x29], eax
mov eax, dword [0x40cef3]
mov dword [ebp - 0x25], eax
mov eax, dword [0x40cef7]
mov dword [ebp - 0x21], eax
mov al, byte [0x40cefb]
mov byte [ebp - 0x1d], al
mov eax, dword [ebp - 0x10]
mov byte [eax], 0x25
inc dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov dl, byte [eax]
mov al, dl
sar al, 7
shr al, 4
add eax, edx
sar al, 4
movsx eax, al
mov dl, byte [ebp + eax - 0x2d]
mov eax, dword [ebp - 0x10]
mov byte [eax], dl
inc dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov al, byte [eax]
movsx eax, al
and eax, 0xf
mov dl, byte [ebp + eax - 0x2d]
mov eax, dword [ebp - 0x10]
mov byte [eax], dl
inc dword [ebp - 0x10]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
mov al, byte [eax]
test al, al
jne 0x4047b5
mov eax, dword [ebp - 0x10]
mov byte [eax], 0x26
inc dword [ebp - 0x10]
add dword [ebp + 0xc], 4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x404769
mov eax, dword [ebp - 0x10]
dec eax
mov byte [eax], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 4], eax
sub esp, 8
push 0
push 0
push dword [ebp + 8]
push sym._thread_proc_4_2
push 0
push 0
call sub.KERNEL32.dll_CreateThread
add esp, 8
sub esp, 8
push eax
push str.CreateThread
call sym._system_assert_
add esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret