Function at 0x10291c0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1660
call fcn.01047580
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 0xc], eax
push esi
push edi
mov ecx, 6
mov esi, 0x1006a40
lea edi, [ebp - 0x23c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ax, word [0x10015d4]
mov word [ebp - 0x210], ax
push 0xfe
push 0
lea ecx, [ebp - 0x20e]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dx, word [0x10015d4]
mov word [ebp - 0x110], dx
push 0xfe
push 0
lea eax, [ebp - 0x10e]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 8], 0
mov ecx, dword [0x104e7d4]
and ecx, 2
xor edx, edx
cmp ecx, 2
sete dl
mov dword [ebp - 0x240], edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0
movzx eax, word [0x104cb5c]
test eax, eax
je 0x10292bf
cmp dword [0x104e7dc], 0
jne 0x10292bf
push 0
call fcn.010267b0
add esp, 4
cmp dword [0x104e7c0], 1
jne 0x10292db
call fcn.0102a320
push 0x1001bf4
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 4
cmp dword [ebp - 0x240], 0
jne 0x10292f1
cmp dword [0x104e7dc], 0
je 0x102985a
cmp dword [ebp + 8], 0
je 0x102985a
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
test edx, edx
je 0x102985a
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
push ecx
push 0x80
lea edx, [ebp - 0x210]
push edx
call fcn.0102a850
add esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x10293c4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov esi, eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
add esi, eax
shl esi, 1
mov dword [ebp - 0x250], esi
push 0x6cb
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0x250]
push eax
call fcn.01011700
add esp, 0xc
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
je 0x10293c4
mov ecx, dword [ebp - 0x250]
push ecx
push 0
mov edx, dword [ebp - 0x24c]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x250]
push edx
mov eax, dword [ebp - 0x24c]
push eax
call fcn.010184c0
add esp, 0x10
mov ecx, dword [ebp - 0x24c]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x3f
je 0x1029404
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
cmp edx, 0x21
je 0x1029404
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x2b
je 0x1029404
push 0x1006a28
push 0x80
lea edx, [ebp - 0x110]
push edx
call fcn.01010390
mov dword [ebp - 8], 1
jmp 0x102941a
push 0x1006a14
push 0x80
lea eax, [ebp - 0x110]
push eax
call fcn.01010390
mov ecx, dword [0x104dda0]
and ecx, 1
je 0x1029430
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x21
je 0x1029479
mov ecx, dword [0x104dda0]
and ecx, 2
je 0x1029446
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x2b
je 0x1029479
mov ecx, dword [0x104dda0]
and ecx, 4
je 0x102945c
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x3f
je 0x1029479
mov ecx, dword [0x104dda0]
and ecx, 4
je 0x102946d
cmp dword [ebp - 8], 0
jne 0x1029479
mov dword [ebp - 0x1660], 0
jmp 0x1029483
mov dword [ebp - 0x1660], 1
mov edx, dword [ebp - 0x1660]
mov dword [ebp - 0x248], edx
xor eax, eax
cmp dword [ebp + 0x10], 4
sete al
or eax, dword [ebp - 0x248]
mov dword [ebp - 0x248], eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov esi, eax
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
add esi, eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
add esi, eax
lea ecx, [esi + esi + 2]
mov dword [ebp - 0x220], ecx
push 0x6ef
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0x220]
push eax
call fcn.01011700
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x102957b
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x220]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.010184c0
add esp, 0x14
push 0x6f4
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0x220]
push ecx
call fcn.01011700
add esp, 0xc
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x102957b
push 0
push 0
mov edx, dword [ebp - 0x220]
push edx
mov eax, dword [ebp - 0x214]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [0x104e7dc], 0
je 0x1029687
cmp dword [ebp - 0x248], 0
je 0x1029687
push 0x104c8f4
call dword [0x104ef44]
test eax, eax
jne 0x10295d6
cmp dword [0x104e7a8], 0
je 0x10295cb
cmp dword [0x104e0cc], 0
je 0x10295cb
lea edx, [ebp - 0x23c]
push edx
push 0x1001c84
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
push 0x104c8f4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x104e7a8], 0
je 0x10295fd
cmp dword [0x104e0cc], 0
je 0x10295fd
lea eax, [ebp - 0x23c]
push eax
push 0x1001c50
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
cmp dword [0x104e300], 0
jne 0x102962a
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [0x104e7dc]
push ecx
call dword [sym.imp.MSVCR80.dll_fwprintf]
add esp, 0x10
jmp 0x1029645
mov edx, dword [ebp - 0x214]
push edx
push 0x1006a10
mov eax, dword [0x104e7dc]
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0xc
mov ecx, dword [0x104e7dc]
push ecx
call dword [sym.imp.MSVCR80.dll_fflush]
add esp, 4
push 0x104c8f4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x104e7a8], 0
je 0x1029687
cmp dword [0x104e0cc], 0
je 0x1029687
lea edx, [ebp - 0x23c]
push edx
push 0x1001c1c
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
cmp dword [ebp - 0x240], 0
je 0x10296ae
cmp dword [ebp - 0x248], 0
je 0x10296ae
mov eax, dword [ebp - 0x214]
push eax
push 0x1006a10
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 8
cmp dword [ebp - 0x214], 0
je 0x10296c6
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.01011d50
add esp, 4
cmp dword [ebp - 4], 0
je 0x10296d8
mov edx, dword [ebp - 4]
push edx
call fcn.01011d50
add esp, 4
mov eax, dword [0x104dda0]
and eax, 1
je 0x1029842
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
cmp edx, 0x21
jne 0x1029842
movzx eax, word [0x104dda8]
test eax, eax
je 0x1029842
mov cx, word [0x10015d4]
mov word [ebp - 0x658], cx
push 0x3fe
push 0
lea edx, [ebp - 0x656]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ax, word [0x10015d4]
mov word [ebp - 0x1658], ax
push 0xffe
push 0
lea ecx, [ebp - 0x1656]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x254], 0
push 0x200
lea edx, [ebp - 0x658]
push edx
push 0x43
mov eax, dword [0x104ef34]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
push 0x104ec10
lea edx, [ebp - 0x658]
push edx
push 0x800
lea eax, [ebp - 0x1658]
push eax
call fcn.01011d00
add esp, 0x14
push 0x720
lea ecx, [ebp - 0x23c]
push ecx
push 8
call fcn.01011700
add esp, 0xc
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
je 0x1029842
push 8
push 0
mov edx, dword [ebp - 0x254]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x254]
push eax
push 0x104dda8
call fcn.01025880
add esp, 8
mov ecx, dword [ebp - 0x254]
add ecx, 4
push ecx
lea edx, [ebp - 0x1658]
push edx
call fcn.01025880
add esp, 8
push 0
push 0
mov eax, dword [ebp - 0x254]
push eax
push 0x1029870
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x165c], eax
cmp dword [ebp - 0x165c], 0
je 0x1029842
mov ecx, dword [ebp - 0x165c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x165c], 0
cmp dword [ebp - 0x24c], 0
je 0x102985a
mov edx, dword [ebp - 0x24c]
push edx
call fcn.01011d50
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret