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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f268
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x551644]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
xor eax, eax
mov dword [ecx], vtable.ModeCGdispScene::CModeCGdisp.0
mov dword [ebp - 4], eax
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x3c], eax
mov dword [ecx + 0x40], eax
mov dword [ecx + 0x44], eax
lea edi, [ecx + 0x80]
mov dword [ecx + 0x4c], eax
mov dword [ecx + 0x54], eax
mov dword [ecx + 0x50], eax
mov dword [ecx + 0x58], eax
mov dword [ecx + 0x60], eax
mov dword [ecx + 0x5c], eax
mov dword [ecx + 0x64], eax
mov dword [ecx + 0x68], 0xffffffff
mov dword [ecx + 0x6c], eax
mov dword [ecx + 0x70], eax
mov dword [ecx + 0x74], 0xff
mov dword [ecx + 0x78], eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [ecx + 0x8c], eax
mov dword [ecx + 0x90], eax
mov dword [ecx + 0x94], eax
lea esi, [ecx + 0x98]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ecx + 0xa4], eax
mov dword [ecx + 0xa8], eax
mov dword [ecx + 0xac], eax
mov dword [ecx + 0xb0], eax
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0xb8], eax
mov ecx, 0x55380c
mov byte [ebp - 4], 8
call fcn.004174f0
mov edx, dword [0x552af0]
mov ebx, dword [edx + 0x30]
test ebx, ebx
jne 0x4b4128
xor eax, eax
jmp 0x4b413e
mov eax, dword [edx + 0x38]
test eax, eax
je 0x4b4134
mov ecx, dword [eax + 0xc]
jmp 0x4b4136
xor ecx, ecx
mov eax, dword [edx + 0x34]
imul eax, ecx
add eax, ebx
add eax, 0x1c
push 0
push 0x517abc
mov ecx, eax
call fcn.004048b0
mov ecx, 0x55380c
call fcn.004174f0
mov ecx, dword [0x552af0]
mov edx, dword [ecx + 0x18]
test edx, edx
jne 0x4b416a
xor ecx, ecx
jmp 0x4b4180
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4b4176
mov eax, dword [eax + 0xc]
jmp 0x4b4178
xor eax, eax
mov ecx, dword [ecx + 0x1c]
imul ecx, eax
add ecx, edx
push str.bg_black.bgd
push edi
call fcn.0043d890
test al, al
jne 0x4b41a4
push 0x533160
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 1
call fcn.004f4775
push 0x24
call fcn.004f4b27
add esp, 4
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 9
test eax, eax
je 0x4b41c2
mov ecx, eax
call fcn.00412010
jmp 0x4b41c4
xor eax, eax
push eax
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.0040cd60
mov ecx, 0x553818
call fcn.004175a0
mov ecx, dword [0x552af4]
mov ebx, dword [ecx + 0x1c]
mov ecx, 0x553818
call fcn.004175a0
mov eax, dword [esi]
mov edx, dword [0x552af4]
mov edi, dword [edx + 0x18]
test eax, eax
jne 0x4b4200
xor ecx, ecx
jmp 0x4b4216
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4b420c
mov edx, dword [ecx + 0xc]
jmp 0x4b420e
xor edx, edx
mov ecx, dword [esi + 4]
imul ecx, edx
add ecx, eax
push 1
xor esi, esi
push esi
push ebx
push edi
call fcn.0040fb20
test al, al
jne 0x4b423b
push 0x533160
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 1
call fcn.004f4775
mov ecx, 0x55380c
call fcn.004174f0
mov ecx, dword [0x552af0]
mov edx, dword [ecx + 0x30]
cmp edx, esi
jne 0x4b4256
xor ecx, ecx
jmp 0x4b426c
mov eax, dword [ecx + 0x38]
cmp eax, esi
je 0x4b4262
mov eax, dword [eax + 0xc]
jmp 0x4b4264
xor eax, eax
mov ecx, dword [ecx + 0x34]
imul ecx, eax
add ecx, edx
push esi
call fcn.0048c260
mov ebx, dword [ebp - 0x14]
xor edi, edi
jmp 0x4b4280
mov ecx, 0x55380c
call fcn.004174f0
mov ecx, dword [0x552af0]
mov edx, dword [ecx + 0x30]
cmp edx, esi
jne 0x4b429b
xor ecx, ecx
jmp 0x4b42b1
mov eax, dword [ecx + 0x38]
cmp eax, esi
je 0x4b42a7
mov eax, dword [eax + 0xc]
jmp 0x4b42a9
xor eax, eax
mov ecx, dword [ecx + 0x34]
imul ecx, eax
add ecx, edx
call fcn.0046ebc0
mov eax, dword [eax + 8]
cmp eax, esi
jne 0x4b42c1
xor eax, eax
jmp 0x4b42c4
mov eax, dword [eax + 0x10]
cmp edi, eax
jge 0x4b434c
push 0x9c
call fcn.004f4b27
add esp, 4
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0xa
cmp eax, esi
je 0x4b42ee
push edi
mov ecx, eax
call fcn.004b29e0
jmp 0x4b42f0
xor eax, eax
push 1
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.0049c800
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebx + 0x3c]
mov byte [ebp - 4], 0xb
call fcn.004a0060
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 8
cmp eax, esi
je 0x4b4346
dec dword [eax + 4]
mov ecx, eax
cmp dword [eax + 4], esi
jne 0x4b4340
cmp byte [ecx + 8], 0
je 0x4b4330
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
mov ecx, dword [ebp - 0x24]
cmp ecx, esi
je 0x4b4340
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], esi
inc edi
jmp 0x4b4280
push 0x5c
mov byte [ebx + 0xc], 0
mov dword [ebx + 0x10], esi
call fcn.004f4b27
mov ebx, eax
add esp, 4
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 0xc
cmp ebx, esi
je 0x4b4470
mov ecx, 0x55380c
call fcn.004174f0
mov edx, dword [0x552af0]
mov esi, dword [edx + 0x18]
test esi, esi
jne 0x4b4389
xor eax, eax
jmp 0x4b439f
mov eax, dword [edx + 0x20]
test eax, eax
je 0x4b4395
mov ecx, dword [eax + 0xc]
jmp 0x4b4397
xor ecx, ecx
mov eax, dword [edx + 0x1c]
imul eax, ecx
add eax, esi
mov edx, dword [eax + 8]
test edx, edx
jne 0x4b43aa
xor edi, edi
jmp 0x4b43c0
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4b43b6
mov ecx, dword [ecx + 0xc]
jmp 0x4b43b8
xor ecx, ecx
mov edi, dword [eax + 0xc]
imul edi, ecx
add edi, edx
mov ecx, 0x55380c
call fcn.004174f0
mov edx, dword [0x552af0]
mov esi, dword [edx + 0x18]
test esi, esi
jne 0x4b43db
xor eax, eax
jmp 0x4b43f1
mov eax, dword [edx + 0x20]
test eax, eax
je 0x4b43e7
mov ecx, dword [eax + 0xc]
jmp 0x4b43e9
xor ecx, ecx
mov eax, dword [edx + 0x1c]
imul eax, ecx
add eax, esi
mov eax, dword [eax + 0x14]
mov ecx, dword [eax]
test ecx, ecx
jne 0x4b43fe
xor eax, eax
jmp 0x4b4414
mov edx, dword [eax + 8]
test edx, edx
je 0x4b440a
mov edx, dword [edx + 0xc]
jmp 0x4b440c
xor edx, edx
mov eax, dword [eax + 4]
imul eax, edx
add eax, ecx
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
test ecx, ecx
jne 0x4b4421
xor eax, eax
jmp 0x4b4437
mov edx, dword [eax + 8]
test edx, edx
je 0x4b442d
mov edx, dword [edx + 0xc]
jmp 0x4b442f
xor edx, edx
mov eax, dword [eax + 4]
imul eax, edx
add eax, ecx
mov eax, dword [eax + 0x3c]
test eax, eax
jne 0x4b4442
xor esi, esi
jmp 0x4b4445
mov esi, dword [eax + 0x10]
mov ecx, 0x5537a9
call fcn.004047e0
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [0x552adc]
call fcn.0043bbf0
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edi
push esi
push edx
push eax
mov ecx, ebx
call fcn.004a2020
jmp 0x4b4472
xor eax, eax
mov ebx, dword [ebp - 0x14]
push eax
lea ecx, [ebx + 0xa4]
mov byte [ebp - 4], 8
call fcn.0049c6c0
push 0x74
call fcn.004f4b27
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 0xd
test edi, edi
je 0x4b4500
mov ecx, 0x55380c
call fcn.004174f0
mov edx, dword [0x552af0]
mov esi, dword [edx + 0x18]
test esi, esi
jne 0x4b44b7
xor eax, eax
jmp 0x4b44cd
mov eax, dword [edx + 0x20]
test eax, eax
je 0x4b44c3
mov ecx, dword [eax + 0xc]
jmp 0x4b44c5
xor ecx, ecx
mov eax, dword [edx + 0x1c]
imul eax, ecx
add eax, esi
mov edx, dword [eax + 8]
test edx, edx
jne 0x4b44e0
xor eax, eax
push eax
mov ecx, edi
call fcn.004a5070
jmp 0x4b4502
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4b44ec
mov ecx, dword [ecx + 0xc]
jmp 0x4b44ee
xor ecx, ecx
mov eax, dword [eax + 0xc]
imul eax, ecx
add eax, edx
push eax
mov ecx, edi
call fcn.004a5070
jmp 0x4b4502
xor eax, eax
push eax
lea ecx, [ebx + 0xb0]
mov byte [ebp - 4], 8
call fcn.0049c760
mov ecx, 0x553818
call fcn.004175a0
mov esi, dword [0x552af4]
mov ecx, dword [esi + 0x30]
sub ecx, dword [esi + 0x2c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 2
jbe 0x4b4567
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x4b4567
mov edx, dword [eax + 0x20]
test edx, edx
je 0x4b455b
mov eax, dword [eax + 0x1c]
mov edx, dword [edx + 0xc]
imul eax, edx
add eax, ecx
jmp 0x4b4569
mov eax, dword [eax + 0x1c]
xor edx, edx
imul eax, edx
add eax, ecx
jmp 0x4b4569
xor eax, eax
mov ecx, 0x553818
mov dword [eax + 4], 0
call fcn.004175a0
mov esi, dword [0x552af4]
mov ecx, dword [esi + 0x30]
sub ecx, dword [esi + 0x2c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jbe 0x4b45c5
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x4b45c5
mov edx, dword [eax + 0x20]
test edx, edx
je 0x4b45b9
mov eax, dword [eax + 0x1c]
mov edx, dword [edx + 0xc]
imul eax, edx
add eax, ecx
jmp 0x4b45c7
mov eax, dword [eax + 0x1c]
xor edx, edx
imul eax, edx
add eax, ecx
jmp 0x4b45c7
xor eax, eax
mov ecx, 0x553818
mov byte [eax + 9], 0
call fcn.004175a0
mov esi, dword [0x552af4]
mov ecx, dword [esi + 0x30]
sub ecx, dword [esi + 0x2c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 2
jbe 0x4b4620
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x4b4620
mov edx, dword [eax + 0x20]
test edx, edx
je 0x4b4614
mov eax, dword [eax + 0x1c]
mov edx, dword [edx + 0xc]
imul eax, edx
add eax, ecx
jmp 0x4b4622
mov eax, dword [eax + 0x1c]
xor edx, edx
imul eax, edx
add eax, ecx
jmp 0x4b4622
xor eax, eax
mov ecx, 0x553818
mov byte [eax + 0x24], 0
call fcn.004175a0
mov esi, dword [0x552af4]
mov ecx, dword [esi + 0x30]
sub ecx, dword [esi + 0x2c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jbe 0x4b467b
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x4b467b
mov edx, dword [eax + 0x20]
test edx, edx
je 0x4b466f
mov eax, dword [eax + 0x1c]
mov edx, dword [edx + 0xc]
imul eax, edx
add eax, ecx
jmp 0x4b467d
mov eax, dword [eax + 0x1c]
xor edx, edx
imul eax, edx
add eax, ecx
jmp 0x4b467d
xor eax, eax
mov ecx, 0x553818
mov byte [eax + 0x25], 1
call fcn.004175a0
mov esi, dword [0x552af4]
mov ecx, dword [esi + 0x30]
sub ecx, dword [esi + 0x2c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 2
jbe 0x4b46d6
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x4b46d6
mov edx, dword [eax + 0x20]
test edx, edx
je 0x4b46ca
mov eax, dword [eax + 0x1c]
mov edx, dword [edx + 0xc]
imul eax, edx
add eax, ecx
jmp 0x4b46d8
mov eax, dword [eax + 0x1c]
xor edx, edx
imul eax, edx
add eax, ecx
jmp 0x4b46d8
xor eax, eax
mov ecx, 0x553818
mov byte [eax + 0x26], 1
call fcn.004175a0
mov esi, dword [0x552af4]
mov ecx, dword [esi + 0x30]
sub ecx, dword [esi + 0x2c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jbe 0x4b4731
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x4b4731
mov edx, dword [eax + 0x20]
test edx, edx
je 0x4b4725
mov eax, dword [eax + 0x1c]
mov edx, dword [edx + 0xc]
imul eax, edx
add eax, ecx
jmp 0x4b4733
mov eax, dword [eax + 0x1c]
xor edx, edx
imul eax, edx
add eax, ecx
jmp 0x4b4733
xor eax, eax
mov byte [eax + 0x27], 1
mov dword [ebx + 4], 0x10
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret