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

Disassembly:
sub esp, 0x158
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x5c]
push edi
mov eax, dword [eax + 0x89]
mov ecx, dword [eax + 0x64]
mov edx, dword [eax + 0x5c]
mov esi, dword [eax + 0x58]
lea eax, [ecx + edx - 1]
mov ecx, 1
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x2d9]
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], ecx
cmp dword [eax + 0x5e28], ecx
jle 0x46acbe
mov dword [esp + 0x10], 0x5e34
lea ebp, [esp + 0xcc]
mov ecx, dword [esp + 0x10]
lea edi, [esp + 0x3c]
push 0
mov edx, dword [ecx + eax]
mov ecx, 0x14
lea esi, [edx + 0x248a]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov dword [ebp - 4], eax
sub eax, ecx
mov ecx, dword [esp + 0x48]
mov dword [ebp], eax
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x50]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x74]
add eax, ecx
mov ecx, dword [esp + 0x5c]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x68]
lea edi, [eax + ecx]
add edi, esi
mov dword [ebp + 0xc], edi
mov edi, dword [esp + 0x64]
sub eax, edi
mov edi, dword [esp + 0x58]
sub eax, edi
mov edi, dword [esp + 0x4c]
sub eax, edi
mov edi, dword [esp + 0x8c]
add eax, ecx
mov ecx, dword [esp + 0x80]
add eax, esi
mov esi, dword [esp + 0x78]
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 0x88]
add eax, ecx
mov ecx, dword [esp + 0x60]
add eax, esi
mov esi, dword [esp + 0x84]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x6c]
add eax, ecx
mov ecx, dword [esp + 0x54]
add eax, ecx
mov ecx, dword [esp + 0x7c]
add eax, edi
add eax, esi
add eax, ecx
mov ecx, edx
mov dword [ebp + 0x18], eax
call fcn.00498bd0
mov dword [ebp + 0x1c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov edi, dword [esp + 0x10]
add ecx, eax
mov eax, dword [ebx + 0x2d9]
add ecx, edx
add edi, 4
mov edx, dword [eax + 0x5e28]
mov dword [ebp + 0x20], ecx
mov ecx, dword [esp + 0x14]
add ebp, 0x28
inc ecx
mov dword [esp + 0x10], edi
cmp ecx, edx
mov dword [esp + 0x14], ecx
jl 0x46abc4
mov esi, dword [esp + 0x30]
mov ecx, 1
cmp dword [esp + 0x170], ecx
jle 0x46acda
mov eax, dword [ebx + 0x2cd]
test eax, eax
je 0x46acda
push ecx
mov ecx, dword [ebx + 0x74]
call fcn.00436a80
mov ebp, dword [0x4f0374]
call ebp
mov ecx, dword [esp + 0x170]
mov edi, eax
mov eax, 1
mov dword [esp + 0x28], edi
cmp ecx, eax
mov dword [esp + 0x20], eax
jl 0x46afbe
mov edx, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x85]
mov eax, dword [edx + 0x95]
push eax
call fcn.00409530
mov ecx, dword [ebx + 0x5c]
push str.FSelect.bmp
mov ecx, dword [ecx + 0x89]
call fcn.0043d7d0
mov edx, dword [ebx + 0x2c9]
mov eax, dword [edx + 0x91d]
test eax, eax
jne 0x46af94
mov ecx, dword [ebx + 0x5c]
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0xa5]
push 0
push eax
push 0xa8
push 0xd2
call fcn.00408f50
test al, al
je 0x46af94
mov eax, dword [ebx + 0x2d9]
mov ecx, 1
mov dword [esp + 0x14], ecx
cmp dword [eax + 0x5e28], ecx
jle 0x46af49
lea edi, [esi + esi*2]
lea ecx, [esi + esi*4]
shl edi, 3
sub edi, esi
lea edx, [esi + ecx*2]
lea ecx, [esi + esi*8]
add edi, 0x7f
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0x5e34
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x10], 0x12c
mov dword [esp + 0x18], edi
jmp 0x46adbc
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov esi, dword [eax + edx]
lea eax, [esp + 0x8c]
test eax, eax
je 0x46addd
lea ecx, [esp + 0x8c]
push esi
push ecx
call dword [0x4f0138]
add esi, 0x4c
lea edx, [esp + 0xa0]
push esi
push str.P_s.bmp
push edx
call dword [0x4f01fc]
mov ecx, dword [ebx + 0x5c]
add esp, 0xc
lea eax, [esp + 0xa0]
mov ecx, dword [ecx + 0x89]
push eax
call fcn.0043d7d0
mov edx, dword [ebx + 0x2c9]
mov eax, dword [edx + 0x91d]
test eax, eax
jne 0x46ae31
push 0xffffffffffffffff
push eax
push eax
lea eax, [esp + 0x98]
push eax
push 0xa8
push edi
jmp 0x46ae52
cmp eax, 1
jne 0x46af94
mov edx, dword [esp + 0x10]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x94]
push 0
push ecx
push 0xa8
push edx
mov ecx, dword [ebx + 0x5c]
call fcn.00408f50
test al, al
je 0x46af94
mov eax, dword [esp + 0x2c]
xor esi, esi
lea ebp, [eax + 0xa8]
jmp 0x46ae74
mov edi, dword [esp + 0x18]
mov ecx, dword [ebx + 0x2c9]
mov eax, dword [ecx + 0x91d]
test eax, eax
je 0x46ae91
cmp eax, 1
jne 0x46af94
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
lea edx, [esp + 0xb4]
push 0xa
push edx
lea ecx, [esi + eax]
mov eax, dword [esp + ecx*4 + 0xd0]
imul eax, dword [esp + 0x28]
cdq
idiv dword [esp + 0x178]
push eax
call dword [0x4f01cc]
add esp, 0xc
mov ecx, dword [ebx + 0x5c]
lea edx, [esp + 0xb4]
push 0xffffffffffffffff
push 0
push 0
push edx
push ebp
push edi
call fcn.00408f50
test al, al
je 0x46af94
mov ecx, dword [esp + 0x2c]
inc esi
add ebp, ecx
cmp esi, 0xa
jl 0x46ae70
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, 4
mov esi, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
add edi, edx
add ebp, eax
mov eax, dword [ebx + 0x2d9]
inc ecx
add esi, 0xa
mov edx, dword [eax + 0x5e28]
mov dword [esp + 0x14], ecx
cmp ecx, edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], esi
jl 0x46adb8
mov esi, dword [esp + 0x30]
mov ebp, dword [0x4f0374]
mov edi, dword [esp + 0x28]
mov ecx, dword [ebx + 0x5c]
call fcn.00408140
test al, al
je 0x46af94
call ebp
mov ecx, eax
sub ecx, edi
cmp ecx, 0x64
jae 0x46af71
mov ecx, dword [ebx + 0x2c9]
sub edi, eax
add edi, 0x64
push edi
call fcn.00402d40
call ebp
mov ecx, dword [esp + 0x170]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jg 0x46afbe
mov edi, dword [esp + 0x28]
jmp 0x46ad00
add ebx, 4
push str.DisplayScore__:_Error_occurs.
push ebx
mov dword [0x8210d4], 1
call fcn.004331c0
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x158
ret 8
mov eax, dword [ebx + 0x2cd]
test eax, eax
je 0x46afd0
mov ecx, dword [ebx + 0x74]
call fcn.00436b90
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x158
ret 8