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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x67629f
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x6f2fc4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
lea esi, [ebx + 0x7e8]
mov dword [esp + 0x1c], esi
call fcn.0043788a
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x1f88]
call fcn.00448749
test al, al
jne 0x4229f7
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x1f88]
call fcn.00448749
mov edi, 0xffffd8f1
test al, al
jne 0x42251c
mov eax, dword [ebx + 8]
lea ecx, [eax + 0x390]
mov dword [esp + 0x18], ecx
xor esi, esi
push esi
lea ecx, [eax + 0x3a0]
call fcn.0044cba9
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
mov byte [esp + 0x20], al
mov eax, dword [ecx]
push edx
call dword [eax + 0x18]
push dword [eax + 4]
push dword [eax]
mov eax, dword [ebx + 0xc]
push dword [esp + 0x28]
call fcn.0043a028
jmp 0x42252e
mov ecx, edi
push ecx
mov eax, edi
push eax
mov eax, dword [ebx + 0xc]
push 0
call fcn.0043a028
xor esi, esi
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0xc]
cmp dword [eax + 0x47c], esi
je 0x4225be
call fcn.0043a00c
test al, al
jne 0x4225be
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x1f88]
mov byte [esp + 0x17], 1
call fcn.00448749
test al, al
jne 0x4225c3
mov eax, dword [ebx + 8]
push 1
lea ecx, [eax + 0x3a0]
call fcn.0044cba9
test al, al
je 0x42264d
mov ecx, dword [ebx + 8]
call fcn.00402a42
mov edi, dword [ebx + 0xc]
call fcn.00439fc6
mov eax, dword [ebx + 8]
push 0x63
pop ecx
call fcn.00402be6
mov eax, dword [ebx + 8]
mov dword [eax + 0x1f90], esi
lea edi, [ebx + 0xa58]
push dword [edi]
lea eax, [ebx + 0x1cc]
call fcn.00437c77
or dword [edi], 0xffffffff
mov dword [ebx + 0xa54], esi
jmp 0x4229f7
mov byte [esp + 0x17], 0
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x1f88]
call fcn.00448749
test al, al
jne 0x422689
cmp byte [esp + 0x17], al
jne 0x422689
mov eax, dword [ebx + 8]
push esi
lea ecx, [eax + 0x3a0]
lea edi, [eax + 0x390]
call fcn.0044cba9
lea ecx, [esp + 0x24]
mov byte [esp + 0x20], al
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x18]
push dword [eax + 4]
lea ecx, [ebx + 0x1cc]
push dword [eax]
push dword [esp + 0x28]
push ecx
call fcn.00437e3d
mov eax, dword [ebx + 8]
push esi
lea ecx, [eax + 0x3a0]
lea edi, [eax + 0x390]
call fcn.0044cba9
lea ecx, [esp + 0x24]
mov byte [esp + 0x20], al
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x18]
push dword [eax + 4]
push dword [eax]
push dword [esp + 0x28]
jmp 0x4226a1
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0x484]
sub ecx, esi
je 0x422668
dec ecx
jne 0x4225c3
mov edi, eax
jmp 0x422584
call fcn.00439f8b
mov eax, dword [ebx + 8]
mov dword [eax + 0x2f40], 1
mov dword [ebx + 0xa54], 2
jmp 0x4229f7
push edi
mov ecx, edi
push ecx
lea eax, [ebx + 0x1cc]
push esi
push eax
call fcn.00437e3d
mov ecx, edi
push ecx
mov eax, edi
push eax
push esi
lea edi, [ebx + 0x518]
push edi
call fcn.00437e3d
lea ecx, [ebx + 0x1cc]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebx + 0xa54]
sub eax, esi
je 0x422775
dec eax
je 0x422722
dec eax
je 0x4226f7
dec eax
jne 0x42282f
mov eax, dword [ebx + 8]
push 0x3c
push 1
push 3
call fcn.004029c4
mov dword [ebx + 0xa54], 0xa
jmp 0x42282f
mov eax, dword [ebx + 0xc]
cmp dword [eax + 0x47c], esi
jne 0x42282f
call fcn.0043a00c
test al, al
jne 0x42282f
mov dword [ebx + 0xa54], 3
jmp 0x42282f
push esi
mov esi, dword [ebx + 0xc]
call fcn.00439b47
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.bg_bg_002_000_000_002_000_000.bmp
call fcn.00403fb6
and dword [esp + 0x5c], 0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x50], esp
push str.movie_bg_mv_bg_002_000_000_002_005_001ss
call fcn.00403fb6
mov esi, dword [esp + 0x54]
or dword [esp + 0x78], 0xffffffff
call fcn.004377cf
mov dword [ebx + 0xa54], 0xa
xor esi, esi
jmp 0x42282f
mov eax, dword [ebx + 0x1e8]
sub eax, dword [ebx + 0x1e4]
push 0x78
cdq
pop ecx
idiv ecx
mov dword [esp + 0x18], esi
test eax, eax
jle 0x4227dd
push dword [esp + 0x18]
lea eax, [ebx + 0x1cc]
call fcn.00437d35
test al, al
je 0x4227aa
mov ecx, dword [ebx + 8]
call fcn.00402a57
push dword [esp + 0x18]
lea eax, [ebx + 0x1cc]
call fcn.00437d77
test al, al
jne 0x422909
mov eax, dword [ebx + 0x1e8]
sub eax, dword [ebx + 0x1e4]
push 0x78
cdq
pop ecx
idiv ecx
inc dword [esp + 0x18]
cmp dword [esp + 0x18], eax
jl 0x42278f
push esi
mov eax, edi
call fcn.00437d35
test al, al
je 0x4227f1
mov ecx, dword [ebx + 8]
call fcn.00402a57
push esi
mov eax, edi
call fcn.00437d77
test al, al
je 0x422812
mov ecx, dword [ebx + 8]
call fcn.00402a2d
mov eax, dword [ebx + 8]
mov dword [eax + 0x1fd0], 1
push esi
mov eax, edi
call fcn.00437db9
test al, al
je 0x42282f
mov ecx, dword [ebx + 8]
call fcn.00402a42
mov eax, dword [ebx + 8]
mov dword [eax + 0x1fd0], esi
cmp dword [ebx + 0xa54], esi
jne 0x4229ee
lea edi, [ebx + 0x1d8]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
push 0x78
cdq
pop ecx
idiv ecx
mov dword [esp + 0x18], esi
test eax, eax
jle 0x4228dd
lea eax, [ebx + 0x200]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 8]
lea ecx, [eax + 0x390]
mov eax, dword [esp + 0x1c]
mov esi, dword [eax]
mov eax, dword [ecx]
lea edx, [esp + 0x2c]
push edx
add esi, 0x5c
call dword [eax + 0x18]
push dword [eax + 4]
mov ecx, dword [esp + 0x20]
push dword [eax]
call dword [esi]
test al, al
je 0x4228bf
push dword [esp + 0x18]
lea eax, [ebx + 0x1cc]
call fcn.00437dfb
test al, al
jne 0x4228bf
mov eax, dword [esp + 0x18]
lea esi, [ebx + 0x5d0]
cmp dword [esi + 0x210], eax
je 0x4228bf
fldz
push ecx
fstp dword [esp]
push eax
call fcn.0042173c
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
push 0x78
cdq
pop ecx
idiv ecx
inc dword [esp + 0x18]
add dword [esp + 0x1c], 0x84
cmp dword [esp + 0x18], eax
jl 0x422863
cmp byte [ebx + 0x790], 0
je 0x4229f7
add ebx, 0x794
add dword [ebx], 0xa
mov ecx, dword [ebx]
mov eax, 0xff
cmp ecx, eax
jle 0x4229f7
mov dword [ebx], eax
jmp 0x4229f7
mov ecx, dword [ebx + 8]
call fcn.00402a2d
mov eax, dword [esp + 0x18]
sub eax, esi
je 0x4229b9
dec eax
je 0x42298e
dec eax
je 0x422969
dec eax
je 0x422962
dec eax
je 0x42295b
dec eax
jne 0x4229e5
push 5
pop edi
push 0xc
mov eax, dword [ebx + 8]
pop ecx
mov dword [ebx + 0xa58], edi
call fcn.00402be6
mov eax, dword [ebx + 8]
mov dword [eax + 0x1f90], esi
mov eax, dword [ebx + 8]
mov dword [eax + 0x2f58], edi
jmp 0x4229db
push 4
pop edi
push 0xb
jmp 0x422935
push 3
pop edi
push 0xa
jmp 0x422935
mov eax, dword [ebx + 8]
push 2
pop ecx
mov dword [ebx + 0xa58], ecx
call fcn.00402be6
mov eax, dword [ebx + 8]
mov dword [eax + 0x1f90], esi
mov eax, dword [ebx + 8]
mov dword [eax + 0x2f58], ecx
jmp 0x4229db
mov eax, dword [ebx + 8]
xor ecx, ecx
inc ecx
mov dword [ebx + 0xa58], ecx
call fcn.00402be6
mov eax, dword [ebx + 8]
mov dword [eax + 0x1f90], esi
mov eax, dword [ebx + 8]
mov dword [eax + 0x2f58], ecx
mov dword [ebx + 0xa54], ecx
jmp 0x4229e5
mov eax, dword [ebx + 8]
xor ecx, ecx
mov dword [ebx + 0xa58], esi
call fcn.00402be6
mov eax, dword [ebx + 8]
mov dword [eax + 0x1f90], esi
mov eax, dword [ebx + 8]
mov dword [eax + 0x2f58], esi
mov dword [ebx + 0xa54], 1
mov edi, ebx
call fcn.00422bac
jmp 0x4229f7
mov esi, dword [esp + 0x1c]
call fcn.0043788a
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret