Function at 0x10026f70
Capabilities:
Create thread

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x10027284
mov edi, dword [esp + 0x48]
test edi, edi
je 0x10027284
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x10027284
cmp dword [0x100531c8], 2
jl 0x100270b2
mov esi, 0x1004e738
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10026fdf
test cl, cl
je 0x10026fdb
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10026fdf
add eax, 2
add esi, 2
test cl, cl
jne 0x10026fbb
xor eax, eax
jmp 0x10026fe4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100270b2
mov esi, str.FETCH
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10027017
test cl, cl
je 0x10027013
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10027017
add eax, 2
add esi, 2
test cl, cl
jne 0x10026ff3
xor eax, eax
jmp 0x1002701c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100270b2
mov esi, str.RESET
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1002704f
test cl, cl
je 0x1002704b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1002704f
add eax, 2
add esi, 2
test cl, cl
jne 0x1002702b
xor eax, eax
jmp 0x10027054
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100270b2
mov esi, str.POST
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10027083
test cl, cl
je 0x1002707f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10027083
add eax, 2
add esi, 2
test cl, cl
jne 0x1002705f
xor eax, eax
jmp 0x10027088
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10027267
push ebp
push 0x1005dc8c
call fcn.1002fb46
add esp, 8
test eax, eax
je 0x10027267
mov eax, dword [0x1004e738]
mov dword [0x1005dc78], eax
jmp 0x100270c2
push 0x14
push edi
push 0x1005dc78
call fcn.1002bce0
add esp, 0xc
push 0x18
push 1
call fcn.1002f306
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x1c]
add esp, 8
mov ebx, eax
lea eax, [esp + 0x18]
push eax
push 0
push ebx
push 0x10028d30
push 0x2000
push 0
mov dword [ebx], ebp
mov dword [ebx + 4], edi
mov dword [ebx + 8], ecx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0xc], 0x1005cc00
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
jne 0x1002711e
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov dword [ecx], 0xfffffffe
pop ebx
add esp, 0x30
ret 0x10
lea edx, [esp + 0x20]
push edx
call fcn.10038826
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edi, dword [sym.imp.USER32.dll_PostThreadMessageA]
add esp, 4
push 0
push 0
lea eax, [esp + 0x2c]
push 0
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jle 0x10027253
lea ecx, [esp + 0x1c]
push ecx
call fcn.10038826
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
sub edx, ecx
add esp, 4
cmp edx, 5
jg 0x10027253
mov eax, dword [esp + 0x28]
cmp eax, 0x4c8
jne 0x100271d0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jne 0x100271bc
lea eax, [esp + 0x10]
push eax
push ebp
call esi
cmp dword [esp + 0x10], 0x103
jne 0x10027228
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x10]
push ecx
push ebp
call esi
cmp dword [esp + 0x10], 0x103
jne 0x10027228
jmp 0x10027137
mov edx, dword [esp + 0x14]
push eax
push 0
push 0x4c8
push edx
call edi
jmp 0x10027137
cmp eax, 0x4c9
jne 0x100271f7
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x1002724c
push eax
mov eax, dword [esp + 0x18]
push 0
push 0x4c9
push eax
call edi
jmp 0x10027137
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [esp + 0x10], 0x103
jne 0x10027137
lea eax, [esp + 0x10]
push eax
push ebp
call esi
jmp 0x10027137
mov edi, dword [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x1005dc8c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x14]
push ebx
mov dword [esp + 0x50], eax
call fcn.1002b28a
mov ebx, dword [esp + 0x50]
add esp, 4
mov ecx, dword [esp + 0x50]
mov eax, ebx
neg eax
sbb eax, eax
pop edi
not eax
pop esi
mov dword [ecx], ebx
pop ebp
and eax, 0x1005cc00
pop ebx
add esp, 0x30
ret 0x10
mov edx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov dword [edx], 0xfffffce0
xor eax, eax
pop ebx
add esp, 0x30
ret 0x10