Function at 0x10001727
Capabilities:
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x894
mov eax, dword [0x1002000c]
xor eax, esp
mov dword [esp + 0x890], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x8c]
push edi
push 0x802
push 0
push eax
call fcn.10004390
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x10], eax
call fcn.10001e8b
mov edi, dword [esp + 0x3c]
lea edx, [esp + 0x28]
mov ebx, dword [esp + 0x28]
cmp edi, 0x10
mov esi, dword [esp + 0x38]
cmovae edx, ebx
test esi, esi
je 0x100017e0
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
jmp 0x100017a0
cmp ecx, edx
je 0x100017e0
dec ecx
cmp byte [ecx], 0x5c
jne 0x1000179b
sub ecx, edx
cmp ecx, 0xffffffff
je 0x100017e0
inc ecx
cmp ecx, esi
jae 0x100017e0
push ecx
push ecx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x34]
call fcn.100019e2
push eax
lea ecx, [esp + 0x2c]
call fcn.10001a2f
lea ecx, [esp + 0x58]
call fcn.10001c94
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x28]
cmp edi, 0x10
lea edx, [esp + 0x28]
push esi
cmovae edx, ebx
lea ecx, [esp + 0x44]
call fcn.10001f58
xor eax, eax
lea edi, [esp + 0x14]
stosd dword es:[edi], eax
xor ebx, ebx
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [esp + 0x10], ax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 7
sub eax, ebx
je 0x1000183a
sub eax, 1
je 0x10001833
sub eax, 1
je 0x1000182c
mov eax, str.unknown
jmp 0x1000183f
mov eax, str.error
jmp 0x1000183f
mov eax, str.info
jmp 0x1000183f
mov eax, str.debug
push eax
lea ecx, [esp + 0x14]
call fcn.100019bb
push dword [esp + 0xc]
cmp dword [esp + 0x58], 8
lea ecx, [esp + 0x44]
push dword [ebp + 0x10]
cmovae ecx, dword [esp + 0x48]
lea eax, [esp + 0x18]
cmp dword [esp + 0x2c], 8
push ecx
cmovae eax, dword [esp + 0x1c]
push eax
lea eax, [esp + 0xa0]
push str._s___s:_d___u
push eax
call fcn.10001ad3
add esp, 0x18
lea ecx, [ebp + 0x1c]
push ecx
push ebx
push dword [ebp + 0x18]
mov ecx, 0x400
sub ecx, eax
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0xa4]
lea eax, [ecx + eax*2]
push eax
call fcn.10001c37
push dword [eax + 4]
push dword [eax]
call fcn.1000a164
add esp, 0x20
cmp dword [ebp + 8], ebx
je 0x1000192c
push 8
pop ecx
push dword [ebp + 8]
xor eax, eax
lea edi, [esp + 0x74]
push str._E_u
rep stosd dword es:[edi], eax
lea eax, [esp + 0x78]
push 0xf
push eax
call fcn.10001c09
lea edx, [esp + 0xa0]
add esp, 0x10
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x100018e3
sub edx, ecx
lea ecx, [esp + 0x70]
sar edx, 1
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100018f9
sub ecx, esi
sar ecx, 1
lea eax, [ecx + edx]
cmp eax, 0x400
jae 0x1000192c
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x94]
push 0x401
push eax
call fcn.1000a335
add esp, 0xc
lea edx, [esp + 0x90]
lea ecx, [esp + 0x58]
call fcn.10001ec4
cmp dword [eax + 0x14], 0x10
jb 0x10001944
mov eax, dword [eax]
push eax
push 0x1001dbec
call fcn.10001bdd
pop ecx
pop ecx
lea ecx, [esp + 0x58]
call fcn.10001c94
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [esp + 0x24]
cmp edx, 8
jb 0x10001981
mov ecx, dword [esp + 0x10]
lea edx, [edx*2 + 2]
call fcn.10001c68
xor eax, eax
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x40]
mov dword [esp + 0x24], 7
mov word [esp + 0x10], ax
call fcn.10001c3d
lea ecx, [esp + 0x28]
call fcn.10001c94
mov ecx, dword [esp + 0x89c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10003004
mov esp, ebp
pop ebp
ret