Function at 0x10031330
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10155e79
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x101a4494]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x70], ecx
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x58]
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x60], esi
call fcn.1000dc50
mov ecx, eax
test ecx, ecx
je 0x10031a7a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x10163644
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.100184f0
test al, al
jne 0x100313bd
push 6
push 0x10163644
mov ecx, esi
call fcn.100102c0
push 0x6e
mov byte [ebp - 4], 0
call fcn.10018790
add esp, 0xc
lea ecx, [ebp - 0x59]
call fcn.1002d830
mov edx, eax
mov dword [ebp - 0x18], 0
mov ecx, edx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100313f0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.1000bb20
push 0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.1002baa0
mov edx, dword [ebp - 0x14]
add esp, 0x10
test eax, eax
mov byte [ebp - 4], 0
sete bl
cmp edx, 0x10
jb 0x1003145a
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10031450
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10031a84
push edx
push ecx
call fcn.100f4a6f
add esp, 8
test bl, bl
jne 0x10031a28
mov edi, dword [ebp - 0x44]
lea ebx, [ebp - 0x58]
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x58]
mov esi, dword [ebp - 0x58]
cmp edi, 8
mov dword [ebp - 0x64], 0xd
cmovae ebx, esi
lea edx, [eax + eax]
add ebx, edx
lea eax, [ebp - 0x58]
cmp edi, 8
cmovae eax, esi
add eax, edx
lea edx, [ebp - 0x64]
push edx
cmp edi, 8
push eax
cmovae ecx, esi
lea eax, [ebp - 0x60]
push ecx
push eax
call fcn.1002d310
add esp, 0x10
lea ecx, [ebp - 0x58]
push ebx
push dword [eax]
lea eax, [ebp - 0x6c]
push eax
call fcn.10033c40
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.1001b270
add esp, 8
mov edi, dword [ebp - 0x84]
mov byte [ebp - 4], 3
mov dword [ebp - 0x60], edi
mov esi, dword [edi]
mov dword [ebp - 0x64], esi
cmp esi, edi
je 0x100315ce
cmp dword [esi + 0x18], 0
lea ebx, [esi + 8]
je 0x100315c1
push ebx
lea ecx, [ebp - 0x28]
call fcn.1000da50
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov edx, ebx
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebx + 0x14], 8
jb 0x1003150d
mov edx, dword [ebx]
mov eax, dword [ebx + 0x10]
lea edx, [edx + eax*2]
jb 0x10031517
mov ebx, dword [ebx]
mov eax, edx
mov dword [ebp - 0x68], 0
sub eax, ebx
mov dword [ebp - 0x74], 0
inc eax
shr eax, 1
cmp ebx, edx
cmova eax, dword [ebp - 0x68]
mov dword [ebp - 0x68], eax
test eax, eax
je 0x10031564
mov edi, dword [ebp - 0x74]
sub ecx, ebx
mov dword [ebp - 0x6c], ecx
mov esi, eax
movzx eax, word [ebx]
push eax
call fcn.1013483e
mov ecx, dword [ebp - 0x6c]
inc edi
add esp, 4
mov word [ebx + ecx], ax
add ebx, 2
cmp edi, esi
jne 0x10031543
mov esi, dword [ebp - 0x64]
mov edi, dword [ebp - 0x60]
push dword [ebp - 0x60]
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ecx + 0x10]
call fcn.1002d160
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x100315c1
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100315b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10031a84
push edx
push ecx
call fcn.100f4a6f
add esp, 8
mov esi, dword [esi]
mov dword [ebp - 0x64], esi
cmp esi, edi
jne 0x100314e2
push 0x98
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.1012e610
add esp, 0xc
lea ecx, [ebp - 0x59]
call fcn.1002dbf0
lea ecx, [ebp - 0x124]
mov esi, eax
call fcn.100090f0
mov edi, eax
push esi
push edi
mov byte [ebp - 4], 5
call fcn.100086f0
mov eax, dword [ebp - 0x70]
add esp, 8
mov ecx, edi
push dword [eax + 0x14]
call fcn.1000f570
cmp dword [0x101aa314], 0
mov byte [ebp - 4], 6
je 0x1003168d
lea eax, [ebp - 0x124]
push eax
call fcn.10008a90
add esp, 4
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x120]
push eax
call fcn.1000d2e0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1003168d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10031683
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10031a89
push edx
push ecx
call fcn.100f4a6f
add esp, 8
lea ecx, [ebp - 0x124]
call fcn.10009fa0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 7
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x60], esi
call fcn.1000dc50
mov ecx, eax
test ecx, ecx
je 0x10031a8e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x10163644
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.100184f0
test al, al
jne 0x100316f5
push 6
push 0x10163644
mov ecx, esi
call fcn.100102c0
push 0x6f
mov byte [ebp - 4], 7
call fcn.10018790
add esp, 0xc
lea ecx, [ebp - 0x59]
call fcn.1002d910
mov edx, eax
mov dword [ebp - 0x18], 0
mov ecx, edx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10031724
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.1000bb20
push 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1002baa0
mov edx, dword [ebp - 0x14]
add esp, 0x10
test eax, eax
mov byte [ebp - 4], 7
sete bl
cmp edx, 0x10
jb 0x1003178e
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10031784
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10031a98
push edx
push ecx
call fcn.100f4a6f
add esp, 8
test bl, bl
jne 0x100319cf
mov edi, dword [ebp - 0x2c]
lea ebx, [ebp - 0x40]
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x40]
mov esi, dword [ebp - 0x40]
cmp edi, 8
mov dword [ebp - 0x60], 0xd
cmovae ebx, esi
lea edx, [eax + eax]
add ebx, edx
lea eax, [ebp - 0x40]
cmp edi, 8
cmovae eax, esi
add eax, edx
lea edx, [ebp - 0x60]
push edx
cmp edi, 8
push eax
cmovae ecx, esi
lea eax, [ebp - 0x6c]
push ecx
push eax
call fcn.1002d310
add esp, 0x10
lea ecx, [ebp - 0x40]
push ebx
push dword [eax]
lea eax, [ebp - 0x60]
push eax
call fcn.10033c40
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.1001b270
add esp, 8
mov edi, dword [ebp - 0x7c]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x68], edi
mov esi, dword [edi]
mov dword [ebp - 0x64], esi
cmp esi, edi
je 0x100318fd
cmp dword [esi + 0x18], 0
lea ebx, [esi + 8]
je 0x100318f0
push ebx
lea ecx, [ebp - 0x28]
call fcn.1000da50
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov edx, ebx
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebx + 0x14], 8
jb 0x1003183b
mov edx, dword [ebx]
mov eax, dword [ebx + 0x10]
lea edx, [edx + eax*2]
jb 0x10031845
mov ebx, dword [ebx]
mov eax, edx
mov dword [ebp - 0x60], 0
sub eax, ebx
mov dword [ebp - 0x6c], 0
inc eax
shr eax, 1
cmp ebx, edx
cmova eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
test eax, eax
je 0x10031893
mov edi, dword [ebp - 0x6c]
sub ecx, ebx
mov dword [ebp - 0x74], ecx
mov esi, eax
movzx eax, word [ebx]
push eax
call fcn.1013483e
mov ecx, dword [ebp - 0x74]
lea ebx, [ebx + 2]
inc edi
add esp, 4
mov word [ebx + ecx - 2], ax
cmp edi, esi
jne 0x10031871
mov esi, dword [ebp - 0x64]
mov edi, dword [ebp - 0x68]
push dword [ebp - 0x60]
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ecx + 8]
call fcn.1002d160
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0xa
cmp edx, 8
jb 0x100318f0
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100318e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10031a84
push edx
push ecx
call fcn.100f4a6f
add esp, 8
mov esi, dword [esi]
mov dword [ebp - 0x64], esi
cmp esi, edi
jne 0x10031810
push 0x98
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.1012e610
add esp, 0xc
lea ecx, [ebp - 0x59]
call fcn.1002e130
lea ecx, [ebp - 0x124]
mov esi, eax
call fcn.100090f0
mov edi, eax
push esi
push edi
mov byte [ebp - 4], 0xc
call fcn.100086f0
mov eax, dword [ebp - 0x70]
add esp, 8
mov ecx, edi
push dword [eax + 0xc]
call fcn.1000f570
cmp dword [0x101aa314], 0
mov byte [ebp - 4], 0xd
je 0x100319bc
lea eax, [ebp - 0x124]
push eax
call fcn.10008a90
add esp, 4
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x120]
push eax
call fcn.1000d2e0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x100319bc
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100319b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10031a9d
push edx
push ecx
call fcn.100f4a6f
add esp, 8
lea ecx, [ebp - 0x124]
call fcn.10009fa0
lea ecx, [ebp - 0x7c]
call fcn.10015880
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x10031a09
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100319ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10031aa2
push edx
push ecx
call fcn.100f4a6f
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.10015880
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x10031a5e
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10031a54
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10031aa7
push edx
push ecx
call fcn.100f4a6f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100f4dc3
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.1000dba0
call fcn.10131c3f
call fcn.10131c3f
push 0x80004005
call fcn.1000dba0
call fcn.10131c3f
call fcn.10131c3f
call fcn.10131c3f
call fcn.10131c3f
int3