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

Disassembly:
push 0xffffffffffffffff
push 0x492604
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebx
push ebp
mov ebp, dword [esp + 0xc8]
push esi
mov esi, ecx
push edi
push ebp
mov dword [esp + 0x38], esi
lea ecx, [esi + 0xe0]
call fcn.00485567
cmp byte [ebp], 0
je 0x4077b1
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push ebp
call fcn.00485498
lea eax, [esp + 0x30]
push eax
call fcn.00401600
mov eax, dword [eax]
push 0x4aa388
push eax
call fcn.00464a16
add esp, 0x10
lea ecx, [esp + 0x2c]
test eax, eax
sete bl
call fcn.0048542a
test bl, bl
je 0x407755
add esi, 0x3c
mov edi, 0x10
call fcn.0046544a
lea eax, [eax + eax*2]
add esi, 4
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov eax, 0x80010003
shl ecx, 2
imul ecx
add edx, ecx
sar edx, 0xe
mov ecx, edx
shr ecx, 0x1f
dec edi
lea edx, [edx + ecx + 0x14]
mov dword [esi - 4], edx
jne 0x406f87
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push ebp
call fcn.00485498
lea eax, [esp + 0x4c]
push eax
call fcn.00401080
add esp, 8
xor ebx, ebx
push ebp
mov dword [esp + 0xcc], ebx
call fcn.00401ab0
mov ecx, eax
call fcn.004021f0
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x2c], esi
je 0x407714
mov ebp, dword [esp + 0x34]
mov eax, dword [0x4aa0d0]
mov ecx, dword [0x4aa0d4]
push ebx
mov dword [ebp + 0x34], eax
push 0x1000
mov dword [ebp + 0x38], ecx
push 1
push esi
lea ecx, [esp + 0x8c]
call fcn.0048b775
lea ecx, [esp + 0x18]
mov byte [esp + 0xc8], 1
call fcn.00484093
lea ecx, [esp + 0x18]
lea edx, [esp + 0x7c]
push ecx
push edx
mov byte [esp + 0xd0], 2
call fcn.00401750
add esp, 8
test eax, eax
je 0x4076e2
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
push eax
call fcn.0048519f
mov ecx, dword [esp + 0x3c]
push str.FRAME
push ecx
mov byte [esp + 0xd0], 3
call fcn.00464a16
add esp, 8
test eax, eax
jne 0x407675
push 0x18
call fcn.00485977
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
cmp esi, ebx
mov byte [esp + 0xc8], 4
je 0x4070ab
lea ecx, [esi + 4]
call fcn.004077d0
mov dword [esp + 0x30], esi
jmp 0x4070af
mov dword [esp + 0x30], ebx
mov edi, dword [esp + 0x30]
lea ecx, [ebp + 4]
push edi
mov byte [esp + 0xcc], 3
mov dword [edi], ebx
mov eax, dword [ecx + 8]
push eax
call fcn.00484754
lea edx, [esp + 0x18]
lea eax, [esp + 0x7c]
push edx
push eax
call fcn.00401750
add esp, 8
test eax, eax
je 0x407663
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.0048519f
mov edx, dword [esp + 0x14]
push str.FRAME
push edx
mov byte [esp + 0xd0], 5
call fcn.00464a16
add esp, 8
test eax, eax
jne 0x407134
cmp dword [esp + 0x20], 2
jl 0x407134
mov eax, dword [esp + 0x1c]
push 0x4aa37c
mov eax, dword [eax + 4]
push eax
call fcn.00464a16
add esp, 8
test eax, eax
je 0x407652
mov ecx, dword [esp + 0x14]
push str.TIME
push ecx
call fcn.00464a16
add esp, 8
test eax, eax
jne 0x407168
cmp dword [esp + 0x20], 2
jl 0x407168
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
push eax
call fcn.00465432
add esp, 4
mov dword [edi], eax
jmp 0x40761d
mov eax, dword [esp + 0x14]
push str.LOOP
push eax
call fcn.00464a16
add esp, 8
test eax, eax
jne 0x40718f
mov ecx, dword [ebp + 0xec]
mov dword [ebp + 0xf0], ecx
jmp 0x40761d
mov edx, dword [esp + 0x14]
push str.SPRITE
push edx
call fcn.00464a16
add esp, 8
test eax, eax
jne 0x40761d
push 0x30
call fcn.00485977
mov esi, eax
lea ecx, [edi + 4]
add esp, 4
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov dword [esi + 0x28], 0x100
mov eax, dword [ecx + 8]
push esi
push eax
call fcn.00484754
lea eax, [esp + 0x18]
lea ecx, [esp + 0x7c]
push eax
push ecx
call fcn.00401750
add esp, 8
test eax, eax
je 0x40753e
jmp 0x407206
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
call fcn.0048519f
mov eax, dword [esp + 0x10]
push str.SPRITE
push eax
mov byte [esp + 0xd0], 6
call fcn.00464a16
add esp, 8
test eax, eax
jne 0x407256
cmp dword [esp + 0x20], 2
jl 0x407256
mov ecx, dword [esp + 0x1c]
push 0x4aa37c
mov eax, dword [ecx + 4]
push eax
call fcn.00464a16
add esp, 8
test eax, eax
je 0x40752d
mov edx, dword [esp + 0x10]
push str.FILE
push edx
call fcn.00464a16
add esp, 8
test eax, eax
jne 0x40732e
cmp dword [esp + 0x20], 2
jl 0x40732e
push 1
lea ecx, [esp + 0x1c]
call fcn.0044ac90
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.0048519f
lea eax, [esp + 0x3c]
push eax
call fcn.004013c0
add esp, 8
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x40]
lea edi, [ebp + 0x18]
push ecx
push edx
mov ecx, edi
mov byte [esp + 0xd0], 7
call fcn.00484a87
test eax, eax
je 0x4072c9
mov eax, dword [esp + 0x40]
mov dword [esi + 0x20], eax
jmp 0x407318
push 0x38
call fcn.00485977
add esp, 4
mov dword [esp + 0x44], eax
cmp eax, ebx
mov byte [esp + 0xc8], 8
je 0x4072fa
mov ecx, dword [esp + 0x38]
mov edx, dword [ebp + 0x7c]
push 0x3f800000
push ecx
push edx
mov ecx, eax
call fcn.00404980
jmp 0x4072fc
xor eax, eax
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x38]
push eax
mov ecx, edi
mov byte [esp + 0xcc], 7
call fcn.00484aa9
mov ecx, dword [esi + 0x20]
mov dword [eax], ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0xc8], 6
call fcn.0048542a
jmp 0x407500
mov edx, dword [esp + 0x10]
push str.DEST
push edx
call fcn.00464a16
add esp, 8
mov edi, 3
test eax, eax
jne 0x407374
cmp dword [esp + 0x20], edi
jl 0x407374
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
mov edi, dword [eax + 4]
push ecx
call fcn.00465432
push edi
mov ebp, eax
call fcn.00465432
mov dword [esi], eax
add esp, 8
mov dword [esi + 4], ebp
jmp 0x407500
mov eax, dword [esp + 0x10]
push 0x4aa350
push eax
call fcn.00464a16
add esp, 8
test eax, eax
jne 0x4073b6
cmp dword [esp + 0x20], edi
jl 0x4073b6
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
mov edi, dword [eax + 4]
push ecx
call fcn.00465432
push edi
mov ebp, eax
call fcn.00465432
mov dword [esi + 8], eax
add esp, 8
mov dword [esi + 0xc], ebp
jmp 0x407500
mov ecx, dword [esp + 0x10]
push str.SIZE
push ecx
call fcn.00464a16
add esp, 8
test eax, eax
jne 0x4073f8
cmp dword [esp + 0x20], edi
jl 0x4073f8
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
mov edi, dword [eax + 4]
push ecx
call fcn.00465432
push edi
mov ebp, eax
call fcn.00465432
mov dword [esi + 0x10], eax
add esp, 8
mov dword [esi + 0x14], ebp
jmp 0x407500
mov edx, dword [esp + 0x10]
push str.OFFSET
push edx
call fcn.00464a16
add esp, 8
test eax, eax
jne 0x40743a
cmp dword [esp + 0x20], edi
jl 0x40743a
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
mov edi, dword [eax + 4]
push ecx
call fcn.00465432
push edi
mov ebp, eax
call fcn.00465432
mov dword [esi + 0x18], eax
add esp, 8
mov dword [esi + 0x1c], ebp
jmp 0x407500
mov eax, dword [esp + 0x10]
push str.ALPHA
push eax
call fcn.00464a16
add esp, 8
mov edi, 2
test eax, eax
jne 0x407486
cmp dword [esp + 0x20], edi
jl 0x407486
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 4]
push eax
call fcn.00465432
mov ecx, eax
mov eax, 0x51eb851f
shl ecx, 8
imul ecx
sar edx, 5
mov eax, edx
add esp, 4
shr eax, 0x1f
add edx, eax
mov dword [esi + 0x28], edx
jmp 0x407500
mov ecx, dword [esp + 0x10]
push str.TYPE
push ecx
call fcn.00464a16
add esp, 8
test eax, eax
jne 0x4074d1
cmp dword [esp + 0x20], edi
jl 0x4074d1
xor ebp, ebp
mov edi, 0x4aa0f0
mov edx, dword [esp + 0x1c]
mov eax, dword [edi]
push eax
mov ecx, dword [edx + 4]
push ecx
call fcn.00464a16
add esp, 8
test eax, eax
jne 0x4074c3
mov dword [esi + 0x24], ebp
add edi, 4
inc ebp
cmp edi, str.MOUTH
jb 0x4074a9
jmp 0x407500
mov eax, dword [esp + 0x10]
push 0x4aa32c
push eax
call fcn.00464a16
add esp, 8
test eax, eax
jne 0x407500
cmp dword [esp + 0x20], edi
jl 0x407500
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 4]
push eax
call fcn.00465432
add esp, 4
mov dword [esi + 0x2c], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0xc8], 5
call fcn.0048542a
lea edx, [esp + 0x18]
lea eax, [esp + 0x7c]
push edx
push eax
call fcn.00401750
add esp, 8
test eax, eax
jne 0x407202
jmp 0x40753e
lea ecx, [esp + 0x10]
mov byte [esp + 0xc8], 5
call fcn.0048542a
cmp dword [esi + 0x24], ebx
jne 0x40761d
mov ebp, dword [esi + 0x20]
cmp ebp, ebx
je 0x40761d
mov edx, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esp + 0x4c], eax
add edx, eax
mov eax, dword [esi + 4]
mov dword [esp + 0x50], ecx
add edi, ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x54], edx
mov edx, dword [esi + 8]
sub eax, ecx
mov ecx, dword [esi]
add ebp, 0x1c
mov dword [esp + 0x58], edi
sub ecx, edx
push eax
mov edx, dword [ebp]
lea eax, [esp + 0x60]
mov dword [esp + 0x60], edx
push ecx
mov edx, dword [ebp + 4]
push eax
mov dword [esp + 0x6c], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x70], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x74], edx
call dword [0x4994c4]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], eax
lea edx, [esp + 0x6c]
mov dword [esp + 0x78], ecx
lea eax, [esp + 0x4c]
push edx
lea ecx, [esp + 0x50]
push eax
push ecx
call dword [0x4994cc]
mov ecx, dword [esi]
mov edi, dword [esp + 0x4c]
mov eax, dword [esi + 4]
mov ebp, dword [esi + 8]
mov edx, dword [esp + 0x50]
neg ecx
add ecx, edi
neg eax
add ebp, ecx
mov ecx, dword [esi + 0xc]
add eax, edx
mov dword [esi + 8], ebp
add ecx, eax
mov eax, dword [esp + 0x58]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x54]
sub eax, edx
sub ecx, edi
mov dword [esi], edi
mov dword [esi + 0x10], ecx
mov dword [esi + 4], edx
mov dword [esi + 0x14], eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xc8], 3
call fcn.0048542a
lea edx, [esp + 0x18]
lea eax, [esp + 0x7c]
push edx
push eax
call fcn.00401750
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
add esp, 8
test eax, eax
jne 0x4070e4
jmp 0x407663
lea ecx, [esp + 0x14]
mov byte [esp + 0xc8], 3
call fcn.0048542a
mov ecx, dword [edi]
mov eax, dword [ebp + 0xec]
add eax, ecx
mov dword [ebp + 0xec], eax
jmp 0x4076b3
mov edx, dword [esp + 0x3c]
push str.SIZE
push edx
call fcn.00464a16
add esp, 8
test eax, eax
jne 0x4076b7
cmp dword [esp + 0x20], 3
jl 0x4076b7
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
mov esi, dword [eax + 4]
push ecx
call fcn.00465432
push esi
mov edi, eax
call fcn.00465432
mov dword [ebp + 0x34], eax
add esp, 8
mov dword [ebp + 0x38], edi
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x3c]
mov byte [esp + 0xc8], 2
call fcn.0048542a
lea eax, [esp + 0x18]
lea ecx, [esp + 0x7c]
push eax
push ecx
call fcn.00401750
add esp, 8
test eax, eax
jne 0x407051
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x4c]
lea ecx, [esp + 0x18]
mov byte [esp + 0xc8], 1
call fcn.004840c6
lea ecx, [esp + 0x7c]
mov byte [esp + 0xc8], 0
call fcn.0048b851
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
push ecx
lea edx, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.0048519f
lea eax, [esp + 0x44]
push eax
call fcn.00401080
add esp, 8
lea ecx, [esp + 0x40]
call fcn.0048542a
lea ecx, [esp + 0x48]
mov dword [esp + 0xc8], 0xffffffff
call fcn.0048542a
mov esi, dword [esp + 0x34]
jmp 0x407795
push 0x38
call fcn.00485977
add esp, 4
mov dword [esp + 0x44], eax
test eax, eax
mov dword [esp + 0xc8], 9
je 0x407785
mov ecx, dword [esi + 0x7c]
push 0x3f800000
push ebp
push ecx
mov ecx, eax
call fcn.00404980
jmp 0x407787
xor eax, eax
mov dword [esi], eax
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x34]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0x38]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x8c], eax
mov ecx, dword [esp + 0xc0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xbc
ret 4