Function at 0x10001f70
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x1c]
cmp byte [esi], 0
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], 0
je 0x10002240
push ebp
mov ebp, dword [sym.imp.USER32.dll_CharNextA]
cmp byte [esi], 0x25
jne 0x10002222
push esi
call ebp
mov esi, eax
mov al, byte [esi]
cmp al, 0x25
je 0x10002222
xor edi, edi
test al, al
mov dword [esp + 0x10], edi
je 0x10001fff
cmp al, 0x23
jne 0x10001fcd
add dword [esp + 0x28], 2
jmp 0x10001fec
cmp al, 0x2a
jne 0x10001fdc
mov eax, dword [ebx]
add ebx, 4
mov dword [esp + 0x10], eax
jmp 0x10001fec
cmp al, 0x2d
je 0x10001fec
cmp al, 0x2b
je 0x10001fec
cmp al, 0x30
je 0x10001fec
cmp al, 0x20
jne 0x10001ff7
push esi
call ebp
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x10001fc2
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x1000202d
push esi
call fcn.10007aff
mov dword [esp + 0x14], eax
mov al, byte [esi]
add esp, 4
test al, al
je 0x1000202d
movsx ecx, al
push ecx
call fcn.100079f3
add esp, 4
test eax, eax
je 0x1000202d
push esi
call ebp
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x10002012
cmp byte [esi], 0x2e
mov dword [esp + 0x14], 0
jne 0x10002081
push esi
call ebp
mov esi, eax
cmp byte [esi], 0x2a
push esi
jne 0x10002054
mov edx, dword [ebx]
add ebx, 4
mov dword [esp + 0x18], edx
call ebp
mov esi, eax
jmp 0x10002081
call fcn.10007aff
mov dword [esp + 0x18], eax
mov al, byte [esi]
add esp, 4
test al, al
je 0x10002081
movsx eax, al
push eax
call fcn.100079f3
add esp, 4
test eax, eax
je 0x10002081
push esi
call ebp
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x10002066
mov al, byte [esi]
xor ebp, ebp
cmp al, 0x49
jne 0x1000209f
cmp byte [esi + 1], 0x36
jne 0x1000209f
cmp byte [esi + 2], 0x34
jne 0x1000209f
add esi, 3
mov ebp, 0x40000
jmp case.0x100020b1.71
movsx eax, al
add eax, 0xffffffba
cmp eax, 0x26
ja case.0x100020b1.71
movzx ecx, byte [eax + 0x100022a8]
jmp dword [ecx*4 + 0x10002298]
mov ebp, 0x10000
jmp case.0x100020b1.70
mov ebp, 0x20000
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
movsx eax, byte [esi]
or eax, ebp
cmp eax, 0x10063
jg 0x1000213f
je 0x10002189
cmp eax, 0x73
jg 0x10002123
je 0x1000212f
cmp eax, 0x43
je 0x10002189
cmp eax, 0x53
je 0x10002162
cmp eax, 0x63
je 0x10002189
movsx eax, byte [esi]
add eax, 0xffffffbb
cmp eax, 0x33
ja case.0x10002113.70
movzx edx, byte [eax + 0x100022e4]
jmp dword [edx*4 + 0x100022d0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x1000217b
sub eax, 0x10043
je 0x10002189
sub eax, 0x10
jne 0x100020fd
mov eax, dword [ebx]
add ebx, 4
test eax, eax
jne 0x1000211a
mov edi, 6
jmp 0x1000219b
cmp eax, 0x20053
jg 0x10002156
je 0x10002162
cmp eax, 0x10073
je 0x1000212f
cmp eax, 0x20043
jmp 0x100020f7
sub eax, 0x20063
je 0x10002189
sub eax, 0x10
jne 0x100020fd
mov eax, dword [ebx]
add ebx, 4
test eax, eax
jne 0x10002172
mov edi, 6
jmp 0x1000219b
push eax
call fcn.10007bb0
add esp, 4
mov edi, eax
cmp edi, 1
jge 0x10002193
mov edi, 1
jmp 0x1000219b
mov edi, 2
add ebx, 4
jmp 0x1000219b
test edi, edi
je 0x100020fd
mov eax, dword [esp + 0x10]
cmp edi, eax
jg 0x100021a5
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je case.0x10002113.70
cmp edi, eax
jl case.0x10002113.70
mov edi, eax
jmp case.0x10002113.70
test ebp, 0x40000
je 0x100021c2
add ebx, 8
jmp 0x100021c5
add ebx, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edi, DeleteCriticalSection
add eax, ecx
cmp eax, edi
jl case.0x10002113.70
mov edi, eax
jmp case.0x10002113.70
push 0x10016220
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp case.0x10002113.70
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edi, DeleteCriticalSection
add eax, edx
add ebx, 4
cmp eax, edi
jl case.0x10002113.70
mov edi, eax
jmp case.0x10002113.70
add ebx, 4
mov eax, dword [esp + 0x28]
mov ebp, dword [sym.imp.USER32.dll_CharNextA]
add eax, edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x28], eax
jmp 0x10002231
push esi
call ebp
mov ecx, dword [esp + 0x28]
sub eax, esi
add ecx, eax
mov dword [esp + 0x28], ecx
push esi
call ebp
mov esi, eax
cmp byte [esi], 0
jne 0x10001fa0
pop ebp
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, edi
call fcn.10001e80
test eax, eax
jne 0x10002259
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov ecx, dword [edi]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_wvsprintfA]
mov ecx, edi
call fcn.10001ad0
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [edi]
mov dword [ecx - 8], eax
mov edx, dword [edi]
pop edi
pop esi
mov byte [eax + edx], 0
mov eax, 1
pop ebx
add esp, 0x10
ret 8