Function at 0x10001030
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001afd8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10071008]
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 esi, ecx
push 0xf
xor eax, eax
mov dword [ebp - 0x30], 0
push str.RunEmuTenvi.ini
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.10001860
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
push esi
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.100037f0
lea ecx, [ebp - 0x58]
call fcn.10004610
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x100010f7
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100010ed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100016f8
push edx
push ecx
call fcn.1000e99c
add esp, 8
mov dword [ebp - 4], 2
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], 3
push eax
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [ebp - 0x5c], esp
push 6
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push str.Region
mov word [ecx], ax
call fcn.10001860
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
xor eax, eax
push 0xb
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push str.RunEmuTenvi
mov word [ecx], ax
call fcn.10001860
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.10004a60
test al, al
je 0x10001599
cmp dword [ebp - 0x30], 0
je 0x10001599
push 0x10020e88
lea ecx, [ebp - 0x40]
call fcn.10001790
test eax, eax
jne 0x1000126c
push 8
push str._Maple_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10001860
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
cmp eax, 0x15
jb 0x100011f7
cmp edx, 8
lea esi, [ebp - 0x28]
push 0x2a
cmovae esi, dword [ebp - 0x28]
lea edi, [ecx + 0x15]
push str.LoadRegionConfig___CN
mov dword [ebp - 0x18], edi
lea eax, [esi + ecx*2]
push eax
call fcn.100113e0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x1000120f
push 0x15
push str.LoadRegionConfig___CN
mov byte [ebp - 0x5c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x5c]
push 0x15
call fcn.100019b0
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 0x1000125b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10001251
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100016fd
push edx
push ecx
call fcn.1000e99c
add esp, 8
mov dword [0x10072348], 1
mov bl, 1
jmp 0x1000166a
push 0x10020ebc
lea ecx, [ebp - 0x40]
call fcn.10001790
test eax, eax
jne 0x10001341
push str._Maple_
lea ecx, [ebp - 0x28]
call fcn.10001810
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
cmp eax, 0x15
jb 0x100012cc
cmp edx, 8
lea esi, [ebp - 0x28]
push 0x2a
cmovae esi, dword [ebp - 0x28]
lea edi, [ecx + 0x15]
push str.LoadRegionConfig___HK
mov dword [ebp - 0x18], edi
lea eax, [esi + ecx*2]
push eax
call fcn.100113e0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x100012e4
push 0x15
push str.LoadRegionConfig___HK
mov byte [ebp - 0x5c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x5c]
push 0x15
call fcn.100019b0
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 0x10001330
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10001326
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001702
push edx
push ecx
call fcn.1000e99c
add esp, 8
mov dword [0x10072348], 2
mov bl, 1
jmp 0x1000166a
push 0x10020ef0
lea ecx, [ebp - 0x40]
call fcn.10001790
test eax, eax
jne 0x10001416
push str._Maple_
lea ecx, [ebp - 0x28]
call fcn.10001810
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
cmp eax, 0x15
jb 0x100013a1
cmp edx, 8
lea esi, [ebp - 0x28]
push 0x2a
cmovae esi, dword [ebp - 0x28]
lea edi, [ecx + 0x15]
push str.LoadRegionConfig___KR
mov dword [ebp - 0x18], edi
lea eax, [esi + ecx*2]
push eax
call fcn.100113e0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x100013b9
push 0x15
push str.LoadRegionConfig___KR
mov byte [ebp - 0x5c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x5c]
push 0x15
call fcn.100019b0
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 0x10001405
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100013fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001707
push edx
push ecx
call fcn.1000e99c
add esp, 8
mov dword [0x10072348], 3
mov bl, 1
jmp 0x1000166a
push 0x10020f24
lea ecx, [ebp - 0x40]
call fcn.10001790
lea ecx, [ebp - 0x28]
push str._Maple_
test eax, eax
jne 0x100014eb
call fcn.10001810
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
cmp eax, 0x16
jb 0x10001476
cmp edx, 8
lea esi, [ebp - 0x28]
push 0x2c
cmovae esi, dword [ebp - 0x28]
lea edi, [ecx + 0x16]
push str.LoadRegionConfig___KRX
mov dword [ebp - 0x18], edi
lea eax, [esi + ecx*2]
push eax
call fcn.100113e0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x1000148e
push 0x16
push str.LoadRegionConfig___KRX
mov byte [ebp - 0x5c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x5c]
push 0x16
call fcn.100019b0
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 0x100014da
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100014d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000170c
push edx
push ecx
call fcn.1000e99c
add esp, 8
mov dword [0x10072348], 4
mov bl, 1
jmp 0x1000166a
call fcn.10001810
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
cmp eax, 0x15
jb 0x1000152e
cmp edx, 8
lea esi, [ebp - 0x28]
push 0x2a
cmovae esi, dword [ebp - 0x28]
lea edi, [ecx + 0x15]
push str.LoadRegionConfig___JP
mov dword [ebp - 0x18], edi
lea eax, [esi + ecx*2]
push eax
call fcn.100113e0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x10001546
push 0x15
push str.LoadRegionConfig___JP
mov byte [ebp - 0x5c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x5c]
push 0x15
call fcn.100019b0
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 0x10001592
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10001588
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001711
push edx
push ecx
call fcn.1000e99c
add esp, 8
mov bl, 1
jmp 0x10001660
push 8
xor eax, eax
mov dword [ebp - 0x18], 0
push str._Maple_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10001860
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
cmp eax, 0x1f
jb 0x100015fa
cmp edx, 8
lea esi, [ebp - 0x28]
push 0x3e
cmovae esi, dword [ebp - 0x28]
lea edi, [ecx + 0x1f]
push str.LoadRegionConfig___JP__Default_
mov dword [ebp - 0x18], edi
lea eax, [esi + ecx*2]
push eax
call fcn.100113e0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x10001612
push 0x1f
push str.LoadRegionConfig___JP__Default_
mov byte [ebp - 0x5c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x5c]
push 0x1f
call fcn.100019b0
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 0x1000165e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10001654
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001716
push edx
push ecx
call fcn.1000e99c
add esp, 8
xor bl, bl
mov dword [0x10072348], 0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x100016a4
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000169a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000171b
push edx
push ecx
call fcn.1000e99c
add esp, 8
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x100016da
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100016d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001720
push edx
push ecx
call fcn.1000e99c
add esp, 8
mov al, bl
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.1000e95b
mov esp, ebp
pop ebp
ret
call fcn.100121d2
call fcn.100121d2
call fcn.100121d2
call fcn.100121d2
call fcn.100121d2
call fcn.100121d2
call fcn.100121d2
call fcn.100121d2
call fcn.100121d2
int3