Function at 0x46bae0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5d4e82
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 1
mov dword [esp + 0x28], ebx
call fcn.0045cf80
xor ebp, ebp
lea ecx, [ebx + 0x10]
mov dword [esp + 0x50], ebp
call fcn.0046dfa0
lea esi, [ebx + 0x11c]
or eax, 0xffffffff
mov ecx, esi
mov byte [esp + 0x50], 1
mov dword [ebx + 0x100], ebp
mov dword [ebx + 0x104], ebp
mov byte [ebx + 0x108], 0
mov dword [ebx + 0x10c], eax
mov dword [ebx + 0x110], 0xfffffffe
mov dword [ebx + 0x114], eax
mov dword [ebx + 0x118], 1
mov dword [esp + 0x20], esi
call fcn.00413890
mov al, byte [esp + 0x12]
lea ecx, [esi + 0x7c]
push ebp
mov byte [esp + 0x54], 2
mov byte [ecx], al
call fcn.00402850
mov dword [esi], 0x5da45c
lea edi, [ebx + 0x1a8]
mov byte [esp + 0x50], 3
mov ecx, edi
call fcn.004a9cc0
push fcn.00448080
push fcn.00447960
lea eax, [ebx + 0x22c]
push 8
push 0xc8
push eax
mov byte [esp + 0x64], 4
call fcn.005c3e67
push fcn.0041aad0
push fcn.00564860
push 0xa
lea ecx, [ebx + 0x86c]
push 0xdc
push ecx
mov byte [esp + 0x64], 5
call fcn.005c3e67
push fcn.00463a40
push 0x4638e0
push 0xa
lea edx, [ebx + 0x1104]
push 0xd8
push edx
mov byte [esp + 0x64], 6
call fcn.005c3e67
push fcn.00463a40
push 0x4638e0
push 0xa
lea eax, [ebx + 0x1974]
push 0xd8
push eax
mov byte [esp + 0x64], 7
call fcn.005c3e67
push fcn.00463a40
push 0x4638e0
mov byte [esp + 0x58], 8
push 0xa
lea ecx, [ebx + 0x21e4]
push 0xd8
push ecx
call fcn.005c3e67
push fcn.00463a40
push 0x4638e0
push 0xa
lea edx, [ebx + 0x2a54]
push 0xd8
push edx
mov byte [esp + 0x64], 9
call fcn.005c3e67
push fcn.00463a40
push 0x4638e0
push 0xa
lea eax, [ebx + 0x32c4]
push 0xd8
push eax
mov byte [esp + 0x64], 0xa
call fcn.005c3e67
lea esi, [ebx + 0x3b34]
push 1
mov ecx, esi
mov byte [esp + 0x54], 0xb
mov dword [esp + 0x24], esi
call fcn.0045cf80
lea ecx, [esi + 0x10]
mov byte [esp + 0x50], 0xc
call fcn.004a9cc0
or eax, 0xffffffff
mov byte [esi + 0xac], 1
mov dword [esi + 0x9c], eax
mov dword [esi + 0xa8], eax
mov eax, 0x10000
mov byte [esi + 0xc0], 0
mov byte [esi + 0xc1], 0
mov byte [esi + 0xc2], 0
mov byte [esi + 0xc3], 0
mov byte [esi + 0xc4], 1
mov dword [esi + 0xc8], ebp
mov byte [esi + 0xcd], 1
mov byte [esi + 0xce], 0
mov byte [esi + 0xd4], 0
mov byte [esi + 0xd5], 1
mov dword [esi], 0x5db800
mov dword [esi + 0xa4], ebp
mov dword [esi + 0xa0], ebp
mov dword [esi + 0xb4], eax
mov dword [esi + 0xb0], eax
mov eax, dword [0x5f33a4]
mov byte [esp + 0x50], 0xd
mov ecx, eax
inc eax
test ecx, ecx
mov dword [0x5f33a4], eax
jne 0x46bd80
push 0x8c
call fcn.0054a1d0
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebp
mov byte [esp + 0x50], 0xe
je 0x46bd79
mov ecx, eax
call fcn.00413890
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x12]
push edx
mov byte [esp + 0x54], 0xf
lea ecx, [eax + 0x7c]
call fcn.00486050
mov eax, dword [esp + 0x18]
mov dword [eax], 0x5da45c
jmp 0x46bd7b
xor eax, eax
mov dword [0x5f3380], eax
mov ecx, dword [0x5f33e0]
mov byte [esi + 0xd6], 0
mov dword [esi + 0xd0], ecx
lea esi, [ebx + 0x3c0c]
push 1
mov ecx, esi
mov byte [esp + 0x54], 0x10
mov dword [esp + 0x24], esi
call fcn.0045cf80
lea ecx, [esi + 0x10]
mov byte [esp + 0x50], 0x11
call fcn.004a9cc0
or eax, 0xffffffff
mov byte [esi + 0xac], 1
mov dword [esi + 0x9c], eax
mov dword [esi + 0xa8], eax
mov eax, 0x10000
mov byte [esi + 0xc0], 0
mov byte [esi + 0xc1], 0
mov byte [esi + 0xc2], 0
mov byte [esi + 0xc3], 0
mov byte [esi + 0xc4], 1
mov dword [esi + 0xc8], ebp
mov byte [esi + 0xcd], 1
mov byte [esi + 0xce], 0
mov byte [esi + 0xd4], 0
mov byte [esi + 0xd5], 1
mov dword [esi], 0x5db800
mov dword [esi + 0xa4], ebp
mov dword [esi + 0xa0], ebp
mov dword [esi + 0xb4], eax
mov dword [esi + 0xb0], eax
mov eax, dword [0x5f33a4]
mov byte [esp + 0x50], 0x12
mov edx, eax
inc eax
test edx, edx
mov dword [0x5f33a4], eax
jne 0x46be96
push 0x8c
call fcn.0054a1d0
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebp
mov byte [esp + 0x50], 0x13
je 0x46be8f
mov ecx, eax
call fcn.00413890
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x12]
push eax
add ecx, 0x7c
mov byte [esp + 0x54], 0x14
call fcn.00486050
mov eax, dword [esp + 0x18]
mov dword [eax], 0x5da45c
jmp 0x46be91
xor eax, eax
mov dword [0x5f3380], eax
mov edx, dword [0x5f33e0]
mov byte [esi + 0xd6], 0
mov dword [esi + 0xd0], edx
push fcn.00463a40
push 0x4638e0
lea eax, [ebx + 0x3ce8]
push 0xa
push 0xd8
push eax
mov byte [esp + 0x64], 0x15
mov dword [ebx + 0x3ce4], ebp
call fcn.005c3e67
push fcn.00463a40
push 0x4638e0
lea eax, [ebx + 0x4558]
push 0xa
push 0xd8
push eax
mov byte [esp + 0x64], 0x16
call fcn.005c3e67
lea eax, [esp + 0x12]
mov dword [ebx], 0x5db840
push eax
push str.deck_c_kaban_list.txt
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 0x17
mov dword [0x5f33b4], ebx
mov dword [0x5f33a8], ebp
mov byte [0x5f33ae], 0
mov byte [0x5f33ad], 0
call fcn.0040e960
mov esi, eax
lea ecx, [esp + 0x13]
mov byte [esp + 0x50], 0x18
push ecx
push str.Mege_y_
lea ecx, [esp + 0x30]
call fcn.0040e960
sub esp, 0x10
mov byte [esp + 0x60], 0x19
mov edx, esp
mov dword [esp + 0x30], esp
push esi
push eax
push edx
call fcn.0040eed0
mov eax, dword [ebx + 0x11c]
lea ecx, [ebx + 0x11c]
add esp, 0xc
call dword [eax]
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], 0x18
call fcn.00402850
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x54], 0x17
call fcn.00402850
mov edx, dword [edi]
push ebp
push 0x258
push 0xe6
mov ecx, edi
mov byte [ebx + 4], 1
mov dword [ebx + 0xc], 0x7d0
call dword [edx + 0x68]
push 0xff55
mov ecx, edi
call fcn.004ac1b0
push ebp
mov ecx, edi
call fcn.004b1160
mov eax, dword [edi]
push ebp
push 0xff
push 0x55
mov ecx, edi
call dword [eax + 0x60]
mov byte [ebx + 0x222], 1
mov dword [esp + 0x14], 0x5db6a0
mov edi, 0x5ebf20
lea esi, [ebx + 0x22c]
call fcn.0041c370
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
mov dword [ecx + 4], eax
mov dword [ecx], 0x5db008
mov dword [ecx + 0xc], ebp
mov dword [ecx + 8], ebp
mov ecx, dword [edi]
push ecx
mov ecx, esi
call fcn.00462430
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi + 0xc], 0x7d1
add edi, 4
add edx, 8
add esi, 0xc8
cmp edi, 0x5ebf40
mov dword [esp + 0x14], edx
jl 0x46bfe6
mov cl, byte [esp + 0x13]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x30], esp
push ebp
mov dword [esp + 0x30], esi
mov byte [esi], cl
mov ecx, esi
call fcn.00402850
mov edi, str.deck_c_font.txt
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, esi
push edi
mov dword [esp + 0x30], edi
call fcn.00402980
test al, al
je 0x46c0a6
mov eax, dword [esp + 0x2c]
mov ecx, edi
mov edx, ecx
mov esi, str.deck_c_font.txt
mov edi, dword [eax + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
push ecx
mov ecx, eax
call fcn.00402960
lea esi, [ebx + 0x3b34]
mov ecx, esi
call fcn.00463ac0
push 0x59
push 0xa
mov ecx, esi
call fcn.0046ff50
push ebp
mov ecx, esi
mov dword [ebx + 0x3b40], 0x7d2
call fcn.0046fe30
mov dl, byte [esp + 0x13]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x30], esp
push ebp
mov ecx, esi
mov dword [esp + 0x30], esi
mov byte [esi], dl
call fcn.00402850
mov edi, str.deck_c_font.txt
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, esi
push edi
mov dword [esp + 0x30], edi
call fcn.00402980
test al, al
je 0x46c134
mov eax, dword [esp + 0x2c]
mov ecx, edi
mov edx, ecx
mov esi, str.deck_c_font.txt
mov edi, dword [eax + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
push ecx
mov ecx, eax
call fcn.00402960
lea esi, [ebx + 0x3c0c]
mov ecx, esi
call fcn.00463ac0
push 0x16
push 0xb
mov ecx, esi
call fcn.0046ff50
push ebp
mov ecx, esi
mov dword [ebx + 0x3c18], 0x7d1
call fcn.0046fe30
xor esi, esi
lea edi, [ebx + 0x8ec]
mov byte [ebx + 0x3ccc], 1
mov dword [ebx + 0x3cd4], 7
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
lea ebp, [ebx + 0x2288]
jmp 0x46c18b
mov edi, dword [esp + 0x18]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00544b40
push 1
call fcn.0040f650
add esp, 4
mov ecx, edi
push eax
call fcn.00544b80
push 0xe
mov ecx, edi
call fcn.00544b20
push 0x2bc
mov ecx, edi
call fcn.00544b70
mov dl, byte [esp + 0x13]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push 0
mov dword [esp + 0x30], ecx
mov byte [ecx], dl
call fcn.00402850
mov edi, str.deck_c_font.txt
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, dword [esp + 0x30]
push edi
mov dword [esp + 0x38], edi
call fcn.00402980
test al, al
je 0x46c226
mov eax, dword [esp + 0x2c]
mov ecx, edi
mov edx, ecx
mov esi, str.deck_c_font.txt
mov edi, dword [eax + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x24]
mov ecx, edx
mov dword [eax + 8], ecx
mov eax, dword [eax + 4]
mov byte [eax + ecx], 0
lea edi, [ebp - 0x1184]
mov ecx, edi
call fcn.00463ac0
push 0
push 5
mov ecx, edi
call fcn.0046ff50
mov dl, byte [esp + 0x13]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
mov byte [ebp - 0x1180], 0
push 0
mov dword [esp + 0x30], ecx
mov byte [ecx], dl
call fcn.00402850
mov edi, str.deck_c_font.txt
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, dword [esp + 0x30]
push edi
mov dword [esp + 0x38], edi
call fcn.00402980
test al, al
je 0x46c2b0
mov eax, dword [esp + 0x2c]
mov ecx, edi
mov edx, ecx
mov esi, str.deck_c_font.txt
mov edi, dword [eax + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x24]
mov ecx, edx
mov dword [eax + 8], ecx
mov eax, dword [eax + 4]
mov byte [eax + ecx], 0
lea edi, [ebp - 0x914]
mov ecx, edi
call fcn.00463ac0
push 0
push 5
mov ecx, edi
mov byte [ebp - 0x910], 0
call fcn.0046ff50
mov dl, byte [esp + 0x13]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push 0
mov dword [esp + 0x30], ecx
mov byte [ecx], dl
call fcn.00402850
mov edi, str.deck_c_font.txt
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, dword [esp + 0x30]
push edi
mov dword [esp + 0x38], edi
call fcn.00402980
test al, al
je 0x46c33a
mov eax, dword [esp + 0x2c]
mov ecx, edi
mov edx, ecx
mov esi, str.deck_c_font.txt
mov edi, dword [eax + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x24]
mov ecx, edx
mov dword [eax + 8], ecx
mov eax, dword [eax + 4]
mov byte [eax + ecx], 0
lea edi, [ebp - 0xa4]
mov ecx, edi
call fcn.00463ac0
push 0x10
push 7
mov ecx, edi
call fcn.0046ff50
mov byte [ebp - 0xa0], 0
mov ecx, dword [0x5db69c]
mov edx, dword [0x5db698]
sub esp, 0x10
add edx, 0x68
lea eax, [esi + ecx + 0x1b]
mov dword [ebp - 4], edx
mov dword [ebp], eax
mov al, byte [esp + 0x23]
mov edx, esp
mov edi, str.deck_c_font.txt
or ecx, 0xffffffff
mov byte [edx], al
xor eax, eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [esp + 0x30], esp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.deck_c_font.txt
mov ecx, edx
call fcn.00412b10
lea edi, [ebp + 0x7cc]
mov ecx, edi
call fcn.00463ac0
push 0x10
push 8
mov ecx, edi
call fcn.0046ff50
mov byte [ebp + 0x7d0], 0
mov ecx, dword [0x5db69c]
mov edx, dword [0x5db698]
sub esp, 0x10
add edx, 0x78
lea eax, [esi + ecx + 0x1b]
mov dword [ebp + 0x86c], edx
mov dword [ebp + 0x870], eax
mov al, byte [esp + 0x23]
mov edx, esp
mov edi, str.deck_c_font.txt
or ecx, 0xffffffff
mov byte [edx], al
xor eax, eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [esp + 0x30], esp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.deck_c_font.txt
mov ecx, edx
call fcn.00412b10
lea edi, [ebp + 0x103c]
mov ecx, edi
call fcn.00463ac0
push 0xb
push 6
mov ecx, edi
call fcn.0046ff50
mov edi, dword [esp + 0x18]
mov byte [ebp + 0x1040], 0
mov ecx, dword [0x5db69c]
mov edx, dword [0x5db698]
add edx, 0xa0
add edi, 0xdc
lea eax, [esi + ecx + 0x1f]
mov dword [ebp + 0x10dc], edx
mov dword [ebp + 0x10e0], eax
mov dword [esp + 0x18], edi
add esi, 0x37
add ebp, 0xd8
cmp esi, 0x226
mov dword [esp + 0x14], esi
jl 0x46c187
mov al, byte [esp + 0x13]
sub esp, 0x10
mov ebp, esp
xor esi, esi
mov edi, str.deck_c_font.txt
or ecx, 0xffffffff
mov byte [ebp], al
xor eax, eax
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
mov dword [esp + 0x30], esp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov edi, ecx
mov ecx, ebp
push edi
mov dword [esp + 0x38], edi
call fcn.00402980
test al, al
je 0x46c4e2
mov ecx, edi
mov edi, dword [ebp + 4]
mov edx, ecx
mov esi, str.deck_c_font.txt
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.00402960
xor esi, esi
lea ecx, [ebx + 0x3ce8]
call fcn.00463ac0
mov cl, byte [esp + 0x13]
sub esp, 0x10
mov ebp, esp
mov edi, str.deck_c_font.txt
xor eax, eax
mov dword [esp + 0x30], esp
mov byte [ebp], cl
or ecx, 0xffffffff
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, ebp
push edi
mov dword [esp + 0x38], edi
call fcn.00402980
test al, al
je 0x46c54d
mov ecx, edi
mov edi, dword [ebp + 4]
mov edx, ecx
mov esi, str.deck_c_font.txt
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.00402960
xor esi, esi
lea ecx, [ebx + 0x4558]
call fcn.00463ac0
lea edi, [ebx + 0x3cec]
push 0
push 2
lea ecx, [edi - 4]
call fcn.0046ff50
push 0x63
mov byte [edi], 1
push esi
mov ecx, ebx
mov dword [edi + 8], 0x7e4
call fcn.0046ca60
lea ebp, [edi + 0x86c]
push 0x10
push 0xe
mov ecx, ebp
call fcn.0046ff50
mov byte [edi + 0x870], 1
push 1
mov ecx, ebp
mov dword [edi + 0x878], 0x7e4
call fcn.0046fe30
inc esi
add edi, 0xd8
cmp esi, 0xa
jl 0x46c55e
mov ecx, dword [esp + 0x48]
pop edi
pop esi
mov eax, ebx
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret