Function at 0x10001000
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100100f8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10018004]
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.10001830
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.10002610
lea ecx, [ebp - 0x58]
call fcn.10001ec0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x100010c7
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100010bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100016c8
push edx
push ecx
call fcn.10003d67
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.10001830
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.10001830
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.100021f0
test al, al
je 0x10001569
cmp dword [ebp - 0x30], 0
je 0x10001569
push 0x10015e48
lea ecx, [ebp - 0x40]
call fcn.10001760
test eax, eax
jne 0x1000123c
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.10001830
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 0x100011c7
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.10006750
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x100011df
push 0x15
push str.LoadRegionConfig___CN
mov byte [ebp - 0x5c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x5c]
push 0x15
call fcn.10001980
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 0x1000122b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10001221
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100016cd
push edx
push ecx
call fcn.10003d67
add esp, 8
mov dword [0x10019360], 1
mov bl, 1
jmp 0x1000163a
push 0x10015e7c
lea ecx, [ebp - 0x40]
call fcn.10001760
test eax, eax
jne 0x10001311
push str._Maple_
lea ecx, [ebp - 0x28]
call fcn.100017e0
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 0x1000129c
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.10006750
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x100012b4
push 0x15
push str.LoadRegionConfig___HK
mov byte [ebp - 0x5c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x5c]
push 0x15
call fcn.10001980
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 0x10001300
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100012f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100016d2
push edx
push ecx
call fcn.10003d67
add esp, 8
mov dword [0x10019360], 2
mov bl, 1
jmp 0x1000163a
push 0x10015eb0
lea ecx, [ebp - 0x40]
call fcn.10001760
test eax, eax
jne 0x100013e6
push str._Maple_
lea ecx, [ebp - 0x28]
call fcn.100017e0
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 0x10001371
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.10006750
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x10001389
push 0x15
push str.LoadRegionConfig___KR
mov byte [ebp - 0x5c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x5c]
push 0x15
call fcn.10001980
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 0x100013d5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100013cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100016d7
push edx
push ecx
call fcn.10003d67
add esp, 8
mov dword [0x10019360], 3
mov bl, 1
jmp 0x1000163a
push 0x10015ee4
lea ecx, [ebp - 0x40]
call fcn.10001760
lea ecx, [ebp - 0x28]
push str._Maple_
test eax, eax
jne 0x100014bb
call fcn.100017e0
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 0x10001446
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.10006750
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x1000145e
push 0x16
push str.LoadRegionConfig___KRX
mov byte [ebp - 0x5c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x5c]
push 0x16
call fcn.10001980
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 0x100014aa
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100014a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100016dc
push edx
push ecx
call fcn.10003d67
add esp, 8
mov dword [0x10019360], 4
mov bl, 1
jmp 0x1000163a
call fcn.100017e0
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 0x100014fe
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.10006750
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x10001516
push 0x15
push str.LoadRegionConfig___JP
mov byte [ebp - 0x5c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x5c]
push 0x15
call fcn.10001980
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 0x10001562
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10001558
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100016e1
push edx
push ecx
call fcn.10003d67
add esp, 8
mov bl, 1
jmp 0x10001630
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.10001830
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 0x100015ca
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.10006750
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x100015e2
push 0x1f
push str.LoadRegionConfig___JP__Default_
mov byte [ebp - 0x5c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x5c]
push 0x1f
call fcn.10001980
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 0x1000162e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10001624
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100016e6
push edx
push ecx
call fcn.10003d67
add esp, 8
xor bl, bl
mov dword [0x10019360], 0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x10001674
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000166a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100016eb
push edx
push ecx
call fcn.10003d67
add esp, 8
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x100016aa
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100016a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100016f0
push edx
push ecx
call fcn.10003d67
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.10003d26
mov esp, ebp
pop ebp
ret
call fcn.10007542
call fcn.10007542
call fcn.10007542
call fcn.10007542
call fcn.10007542
call fcn.10007542
call fcn.10007542
call fcn.10007542
call fcn.10007542
int3