Function at 0x10008500
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
mov al, byte [esi]
mov dword [esp + 0x28], 0
test al, al
je 0x10008806
mov ebp, dword [sym.imp.USER32.DLL_CharNextA]
cmp byte [esi], 0x25
jne 0x100087e9
push esi
call ebp
mov esi, eax
mov al, byte [esi]
cmp al, 0x25
je 0x100087e9
xor edi, edi
test al, al
mov dword [esp + 0x10], edi
je 0x1000858c
cmp al, 0x23
jne 0x1000855c
add dword [esp + 0x28], 2
jmp 0x1000857b
cmp al, 0x2a
jne 0x1000856b
mov eax, dword [ebx]
add ebx, 4
mov dword [esp + 0x10], eax
jmp 0x1000857b
cmp al, 0x2d
je 0x1000857b
cmp al, 0x2b
je 0x1000857b
cmp al, 0x30
je 0x1000857b
cmp al, 0x20
jne 0x10008586
push esi
call ebp
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x10008551
cmp dword [esp + 0x10], edi
jne 0x100085ba
push esi
call fcn.1001b3e0
mov dword [esp + 0x14], eax
mov al, byte [esi]
add esp, 4
test al, al
je 0x100085ba
movsx ecx, al
push ecx
call fcn.1001b2c6
add esp, 4
test eax, eax
je 0x100085ba
push esi
call ebp
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x1000859f
mov al, byte [esi]
mov dword [esp + 0x14], 0
cmp al, 0x2e
jne 0x10008610
push esi
call ebp
mov esi, eax
cmp byte [esi], 0x2a
jne 0x100085e2
mov edx, dword [ebx]
add ebx, 4
push esi
mov dword [esp + 0x18], edx
call ebp
mov esi, eax
jmp 0x10008610
push esi
call fcn.1001b3e0
mov dword [esp + 0x18], eax
mov al, byte [esi]
add esp, 4
test al, al
je 0x10008610
movsx eax, al
push eax
call fcn.1001b2c6
add esp, 4
test eax, eax
je 0x10008610
push esi
call ebp
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x100085f5
mov al, byte [esi]
xor ebp, ebp
cmp al, 0x49
jne 0x1000862e
cmp byte [esi + 1], 0x36
jne 0x1000862e
cmp byte [esi + 2], 0x34
jne 0x1000862e
add esi, 3
mov ebp, 0x40000
jmp case.0x10008641.73
movsx eax, al
add eax, 0xffffffba
cmp eax, 0x26
ja case.0x10008641.73
xor ecx, ecx
mov cl, byte [eax + 0x1000898c]
jmp dword [ecx*4 + 0x1000897c]
mov ebp, 0x10000
jmp case.0x10008641.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 0x10008700
je 0x10008761
cmp eax, 0x73
jg 0x100086f2
je 0x100086d6
cmp eax, 0x43
je 0x10008761
cmp eax, 0x53
je 0x100086c3
cmp eax, 0x63
je 0x10008761
movsx eax, byte [esi]
add eax, 0xffffffb9
cmp eax, 0x31
ja case.0x100086a8.75
xor edx, edx
mov dl, byte [eax + 0x100089c8]
jmp dword [edx*4 + 0x100089b4]
test ebp, 0x40000
je 0x1000878d
add ebx, 8
jmp 0x10008790
mov eax, dword [ebx]
add ebx, 4
test eax, eax
jne 0x1000874a
mov edi, 6
jmp 0x10008773
mov eax, dword [ebx]
add ebx, 4
test eax, eax
jne 0x100086e9
mov edi, 6
jmp 0x10008773
push eax
call dword [sym.imp.kernel32.dll_lstrlen]
jmp 0x10008753
sub eax, 0x10043
je 0x10008761
sub eax, 0x10
je 0x1000871a
jmp 0x10008691
cmp eax, 0x20053
jg 0x1000872a
je 0x1000873a
cmp eax, 0x10073
je 0x1000871a
cmp eax, 0x20043
jmp 0x1000868b
mov eax, dword [ebx]
add ebx, 4
test eax, eax
jne 0x100086e9
mov edi, 6
jmp 0x10008773
sub eax, 0x20063
je 0x10008761
sub eax, 0x10
jne 0x10008691
mov eax, dword [ebx]
add ebx, 4
test eax, eax
jne 0x1000874a
mov edi, 6
jmp 0x10008773
push eax
call fcn.1001b2a9
add esp, 4
mov edi, eax
cmp edi, 1
jge 0x1000876b
mov edi, 1
jmp 0x10008773
mov edi, 2
add ebx, 4
jmp 0x10008773
test edi, edi
je 0x10008691
mov eax, dword [esp + 0x10]
cmp edi, eax
jg 0x1000877d
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je case.0x100086a8.75
cmp edi, eax
jl case.0x100086a8.75
mov edi, eax
jmp case.0x100086a8.75
add ebx, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edi, 0x20
add eax, ecx
cmp eax, edi
jl case.0x100086a8.75
mov edi, eax
jmp case.0x100086a8.75
push 0x100391f0
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
call dword [sym.imp.kernel32.dll_DebugBreak]
jmp case.0x100086a8.75
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edi, 0x20
add eax, edx
add ebx, 4
cmp eax, edi
jl case.0x100086a8.75
mov edi, eax
jmp case.0x100086a8.75
add ebx, 4
mov eax, dword [esp + 0x28]
mov ebp, dword [sym.imp.USER32.DLL_CharNextA]
add eax, edi
mov dword [esp + 0x28], eax
jmp 0x100087f8
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 0x1000852f
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
mov eax, dword [ecx]
mov ecx, dword [eax - 0xc]
cmp ecx, 1
lea ebp, [eax - 0xc]
jg 0x10008824
cmp esi, dword [eax - 4]
jle 0x100088a9
mov ebx, dword [eax - 8]
mov eax, dword [esp + 0x28]
cmp eax, ebx
jge 0x10008831
mov esi, ebx
test esi, esi
jne 0x10008843
mov eax, dword [esp + 0x18]
mov edx, dword [0x10039080]
mov dword [eax], edx
jmp 0x1000886d
lea ecx, [esi + 0xd]
push ecx
call fcn.1001a636
add esp, 4
test eax, eax
je 0x100088b3
mov edx, dword [esp + 0x18]
mov dword [eax], 1
mov byte [eax + esi + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
mov dword [edx], eax
mov eax, dword [esp + 0x18]
lea ecx, [ebx + 1]
mov edx, ecx
lea esi, [ebp + 0xc]
mov edi, dword [eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [eax]
mov dword [eax - 8], ebx
mov eax, dword [0x10039084]
cmp ebp, eax
je 0x100088a9
push ebp
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jg 0x100088a9
push ebp
call fcn.1001a644
add esp, 4
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx]
test eax, eax
jne 0x100088bf
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 8
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
push ecx
push edx
push eax
call dword [sym.imp.USER32.DLL_wvsprintfA]
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
lea edi, [eax - 0xc]
cmp ecx, 1
jle 0x10008959
mov ecx, dword [0x10039084]
add eax, 0xfffffff4
cmp eax, ecx
je 0x1000890b
push edi
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jg 0x10008903
mov eax, dword [ebx]
sub eax, 0xc
push eax
call fcn.1001a644
add esp, 4
mov ecx, dword [0x10039080]
mov dword [ebx], ecx
mov esi, dword [edi + 4]
test esi, esi
jne 0x1000891c
mov edx, dword [0x10039080]
mov dword [ebx], edx
jmp 0x10008942
lea eax, [esi + 0xd]
push eax
call fcn.1001a636
add esp, 4
test eax, eax
je 0x10008959
mov dword [eax], 1
mov byte [eax + esi + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
mov dword [ebx], eax
mov ecx, dword [edi + 4]
lea esi, [edi + 0xc]
mov edi, dword [ebx]
inc ecx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
push eax
call dword [sym.imp.kernel32.dll_lstrlen]
mov ecx, dword [ebx]
pop edi
pop esi
pop ebp
mov dword [ecx - 8], eax
mov edx, dword [ebx]
pop ebx
mov byte [edx + eax], 0
mov eax, 1
add esp, 0x10
ret 8