Function at 0x10002580
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ed49
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x10079040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xb
xorps xmm0, xmm0
mov dword [ebp - 0x98], 0
push str.EmuMain.ini
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x94], 0
movups xmmword [ebp - 0xa8], xmm0
call fcn.10002110
mov dword [ebp - 4], 0
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x78], 0
movups xmmword [ebp - 0x88], xmm0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
push esi
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp - 0xa8]
mov ecx, esp
push eax
call fcn.10003170
lea ecx, [ebp - 0x88]
call fcn.10006c20
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x94]
cmp ecx, 7
jbe 0x1000266f
mov edx, dword [ebp - 0xa8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002665
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000303e
push ecx
push edx
call fcn.100123c4
add esp, 8
mov dword [ebp - 4], 2
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x60], 0
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 5
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8c], esp
push 6
movups xmmword [ecx], xmm0
push 0x1002502c
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10002110
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
xorps xmm0, xmm0
push 7
movups xmmword [ecx], xmm0
push str.EmuMain
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10002110
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 5
call fcn.10006f60
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test al, al
je 0x10002a76
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.10003170
push str.TWMS
lea ecx, [ebp - 0x28]
call fcn.100030f0
mov ecx, dword [ebp - 0x14]
test eax, eax
jne 0x1000278d
mov dword [0x1007a418], 1
cmp ecx, 7
jbe 0x10002830
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002786
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000301b
push ecx
push edx
jmp 0x10002828
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
cmp ecx, 7
mov dword [ebp - 0x8c], 4
mov edx, str.MSEA
cmova eax, edi
cmp esi, 4
cmova esi, dword [ebp - 0x8c]
test esi, esi
je 0x100027e2
sub eax, edx
mov dword [ebp - 0x8c], eax
movzx ecx, word [edx + eax]
movzx eax, word [edx]
cmp cx, ax
jne 0x10002896
mov eax, dword [ebp - 0x8c]
add edx, 2
sub esi, 1
jne 0x100027c1
mov ecx, dword [ebp - 0x14]
cmp dword [ebp - 0x18], 4
jb 0x10002896
ja 0x10002896
mov dword [0x1007a418], 2
cmp ecx, 7
jbe 0x10002830
lea ecx, [ecx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x10002826
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000301b
push ecx
push edi
call fcn.100123c4
add esp, 8
push 8
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push str._Debug_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
call fcn.10002110
mov byte [ebp - 4], 7
xorps xmm0, xmm0
mov eax, dword [0x1007a418]
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
movups xmmword [ebp - 0xa8], xmm0
sub eax, 0
je 0x100028e4
sub eax, 1
je 0x100028d8
sub eax, 1
je 0x100028cc
mov eax, str.Unknown
mov ecx, 7
jmp 0x100028ee
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x10002830
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x10002826
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000301b
jmp 0x10002826
mov eax, str.MSEA
mov ecx, 4
jmp 0x100028ee
mov eax, str.TWMS
mov ecx, 4
jmp 0x100028ee
mov eax, 0x10024ffc
mov ecx, 3
push ecx
push eax
lea ecx, [ebp - 0xa8]
call fcn.10002110
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 8
push eax
mov edx, str.Region
lea ecx, [ebp - 0xc0]
call fcn.10001ff0
add esp, 4
mov edx, eax
mov byte [ebp - 4], 9
cmp dword [edx + 0x14], 7
mov edi, dword [edx + 0x10]
jbe 0x1000292a
mov edx, dword [edx]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
sub eax, ecx
mov dword [ebp - 0x8c], ecx
cmp edi, eax
ja 0x1000296e
cmp dword [ebp - 0x14], 7
lea eax, [edi + ecx]
lea esi, [ebp - 0x28]
mov dword [ebp - 0x18], eax
cmova esi, dword [ebp - 0x28]
lea eax, [edi + edi]
push eax
push edx
lea ecx, [esi + ecx*2]
push ecx
call fcn.10014cd0
mov eax, dword [ebp - 0x8c]
add esp, 0xc
add eax, edi
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x1000297f
push edi
push edx
push dword [ebp - 0x90]
lea ecx, [ebp - 0x28]
push edi
call fcn.10002200
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0xac]
cmp ecx, 7
jbe 0x100029c3
mov edx, dword [ebp - 0xc0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100029b9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003020
push ecx
push edx
call fcn.100123c4
add esp, 8
xor eax, eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 7
mov word [ebp - 0xc0], ax
cmp ecx, 7
jbe 0x10002a24
mov edx, dword [ebp - 0xa8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002a1a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003020
push ecx
push edx
call fcn.100123c4
add esp, 8
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmova eax, dword [ebp - 0x28]
push eax
call esi
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x10002a76
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002a6c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003025
push ecx
push edx
call fcn.100123c4
add esp, 8
lea eax, [ebp - 0x58]
xorps xmm0, xmm0
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x90], esp
push 7
movups xmmword [ecx], xmm0
push 0x1002505c
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10002110
sub esp, 0x18
mov byte [ebp - 4], 0xa
mov ecx, esp
xorps xmm0, xmm0
push 7
movups xmmword [ecx], xmm0
push str.EmuMain
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10002110
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 5
call fcn.10006f60
test al, al
je 0x10002cac
cmp dword [ebp - 0x44], 7
lea eax, [ebp - 0x58]
cmova eax, dword [ebp - 0x58]
push eax
call fcn.10015ce6
add esp, 4
mov dword [0x1007a414], eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
push 8
push str._Debug_
call fcn.10002110
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xa8]
mov edx, dword [0x1007a414]
call fcn.100024e0
push eax
mov edx, str.Version
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xc0]
call fcn.10001ff0
add esp, 4
mov edx, eax
mov byte [ebp - 4], 0xd
cmp dword [edx + 0x14], 7
mov edi, dword [edx + 0x10]
jbe 0x10002b60
mov edx, dword [edx]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
sub eax, ecx
mov dword [ebp - 0x8c], ecx
cmp edi, eax
ja 0x10002ba4
cmp dword [ebp - 0x14], 7
lea eax, [edi + ecx]
lea esi, [ebp - 0x28]
mov dword [ebp - 0x18], eax
cmova esi, dword [ebp - 0x28]
lea eax, [edi + edi]
push eax
push edx
lea ecx, [esi + ecx*2]
push ecx
call fcn.10014cd0
mov eax, dword [ebp - 0x8c]
add esp, 0xc
add eax, edi
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x10002bb5
push edi
push edx
push dword [ebp - 0x90]
lea ecx, [ebp - 0x28]
push edi
call fcn.10002200
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0xac]
cmp ecx, 7
jbe 0x10002bf9
mov edx, dword [ebp - 0xc0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002bef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000302a
push ecx
push edx
call fcn.100123c4
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 7
mov word [ebp - 0xc0], ax
cmp ecx, 7
jbe 0x10002c5a
mov edx, dword [ebp - 0xa8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002c50
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000302a
push ecx
push edx
call fcn.100123c4
add esp, 8
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmova eax, dword [ebp - 0x28]
push eax
call esi
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x10002cac
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002ca2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000302f
push ecx
push edx
call fcn.100123c4
add esp, 8
lea eax, [ebp - 0x40]
xorps xmm0, xmm0
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x90], esp
push 0x11
movups xmmword [ecx], xmm0
push str.DisableMemoryDump
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10002110
sub esp, 0x18
mov byte [ebp - 4], 0xe
mov ecx, esp
xorps xmm0, xmm0
push 7
movups xmmword [ecx], xmm0
push str.EmuMain
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10002110
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 5
call fcn.10006f60
test al, al
je 0x10002edb
cmp dword [ebp - 0x2c], 7
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
push eax
call fcn.10015ce6
add esp, 4
mov dword [ebp - 0x18], 0
test eax, eax
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x28]
setne byte [0x1007a41c]
push 8
push str._Debug_
movups xmmword [ebp - 0x28], xmm0
call fcn.10002110
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xd8]
movzx edx, byte [0x1007a41c]
call fcn.100024e0
push eax
mov edx, str.VeDisableMemoryDump
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xc0]
call fcn.10001ff0
add esp, 4
mov edx, eax
mov byte [ebp - 4], 0x11
cmp dword [edx + 0x14], 7
mov edi, dword [edx + 0x10]
jbe 0x10002d9b
mov edx, dword [edx]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
sub eax, ecx
mov dword [ebp - 0x8c], ecx
cmp edi, eax
ja 0x10002de5
cmp dword [ebp - 0x14], 7
lea eax, [ecx + edi]
lea esi, [ebp - 0x28]
mov dword [ebp - 0x18], eax
cmova esi, dword [ebp - 0x28]
lea eax, [edi + edi]
push eax
push edx
lea ecx, [esi + ecx*2]
push ecx
call fcn.10014cd0
mov eax, dword [ebp - 0x8c]
add esp, 0xc
add eax, edi
xor ecx, ecx
mov word [esi + eax*2], cx
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x10002df6
push edi
push edx
push dword [ebp - 0x90]
lea ecx, [ebp - 0x28]
push edi
call fcn.10002200
mov ecx, dword [ebp - 0xac]
cmp ecx, 7
jbe 0x10002e36
mov edx, dword [ebp - 0xc0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002e2c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003034
push ecx
push edx
call fcn.100123c4
add esp, 8
mov ecx, dword [ebp - 0xc4]
xor eax, eax
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 7
mov word [ebp - 0xc0], ax
cmp ecx, 7
jbe 0x10002e93
mov edx, dword [ebp - 0xd8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002e89
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003034
push ecx
push edx
call fcn.100123c4
add esp, 8
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call esi
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x10002edb
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002ed1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003039
push ecx
push edx
call fcn.100123c4
add esp, 8
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x10002f15
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002f0b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000303e
push ecx
push edx
call fcn.100123c4
add esp, 8
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ecx, 7
jbe 0x10002f63
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002f59
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000303e
push ecx
push edx
call fcn.100123c4
add esp, 8
mov ecx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp ecx, 7
jbe 0x10002fb1
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002fa7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000303e
push ecx
push edx
call fcn.100123c4
add esp, 8
mov ecx, dword [ebp - 0x74]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp ecx, 7
jbe 0x10002ffe
mov edx, dword [ebp - 0x88]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002ff4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000303e
push ecx
push edx
call fcn.100123c4
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10012067
mov esp, ebp
pop ebp
ret
call fcn.100155ac
call fcn.100155ac
call fcn.100155ac
call fcn.100155ac
call fcn.100155ac
call fcn.100155ac
call fcn.100155ac
call fcn.100155ac
int3