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

Disassembly:
push 0xffffffffffffffff
push 0x48fe04
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.00482d67
cmp byte [ebp], 0
je 0x407391
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push ebp
call fcn.00482c98
lea eax, [esp + 0x30]
push eax
call fcn.00401600
mov eax, dword [eax]
push 0x4a7388
push eax
call fcn.00462206
add esp, 0x10
lea ecx, [esp + 0x2c]
test eax, eax
sete bl
call fcn.00482c2a
test bl, bl
je 0x407335
add esi, 0x3c
mov edi, 0x10
call fcn.00462c3a
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 0x406b67
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push ebp
call fcn.00482c98
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 0x4072f4
mov ebp, dword [esp + 0x34]
mov eax, dword [0x4a70d0]
mov ecx, dword [0x4a70d4]
push ebx
mov dword [ebp + 0x34], eax
push 0x1000
mov dword [ebp + 0x38], ecx
push 1
push esi
lea ecx, [esp + 0x8c]
call fcn.00488f75
lea ecx, [esp + 0x18]
mov byte [esp + 0xc8], 1
call fcn.00481893
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 0x4072c2
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
push eax
call fcn.0048299f
mov ecx, dword [esp + 0x3c]
push str.FRAME
push ecx
mov byte [esp + 0xd0], 3
call fcn.00462206
add esp, 8
test eax, eax
jne 0x407255
push 0x18
call fcn.00483177
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
cmp esi, ebx
mov byte [esp + 0xc8], 4
je 0x406c8b
lea ecx, [esi + 4]
call fcn.004073c0
mov dword [esp + 0x30], esi
jmp 0x406c8f
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.0048207d
lea edx, [esp + 0x18]
lea eax, [esp + 0x7c]
push edx
push eax
call fcn.00401750
add esp, 8
test eax, eax
je 0x407243
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.0048299f
mov edx, dword [esp + 0x14]
push str.FRAME
push edx
mov byte [esp + 0xd0], 5
call fcn.00462206
add esp, 8
test eax, eax
jne 0x406d14
cmp dword [esp + 0x20], 2
jl 0x406d14
mov eax, dword [esp + 0x1c]
push 0x4a737c
mov eax, dword [eax + 4]
push eax
call fcn.00462206
add esp, 8
test eax, eax
je 0x407232
mov ecx, dword [esp + 0x14]
push str.TIME
push ecx
call fcn.00462206
add esp, 8
test eax, eax
jne 0x406d48
cmp dword [esp + 0x20], 2
jl 0x406d48
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
push eax
call fcn.00462c22
add esp, 4
mov dword [edi], eax
jmp 0x4071fd
mov eax, dword [esp + 0x14]
push str.LOOP
push eax
call fcn.00462206
add esp, 8
test eax, eax
jne 0x406d6f
mov ecx, dword [ebp + 0xec]
mov dword [ebp + 0xf0], ecx
jmp 0x4071fd
mov edx, dword [esp + 0x14]
push str.SPRITE
push edx
call fcn.00462206
add esp, 8
test eax, eax
jne 0x4071fd
push 0x30
call fcn.00483177
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.0048207d
lea eax, [esp + 0x18]
lea ecx, [esp + 0x7c]
push eax
push ecx
call fcn.00401750
add esp, 8
test eax, eax
je 0x40711e
jmp 0x406de6
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
call fcn.0048299f
mov eax, dword [esp + 0x10]
push str.SPRITE
push eax
mov byte [esp + 0xd0], 6
call fcn.00462206
add esp, 8
test eax, eax
jne 0x406e36
cmp dword [esp + 0x20], 2
jl 0x406e36
mov ecx, dword [esp + 0x1c]
push 0x4a737c
mov eax, dword [ecx + 4]
push eax
call fcn.00462206
add esp, 8
test eax, eax
je 0x40710d
mov edx, dword [esp + 0x10]
push str.FILE
push edx
call fcn.00462206
add esp, 8
test eax, eax
jne 0x406f0e
cmp dword [esp + 0x20], 2
jl 0x406f0e
push 1
lea ecx, [esp + 0x1c]
call fcn.004073b0
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.0048299f
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.00482287
test eax, eax
je 0x406ea9
mov eax, dword [esp + 0x40]
mov dword [esi + 0x20], eax
jmp 0x406ef8
push 0x34
call fcn.00483177
add esp, 4
mov dword [esp + 0x44], eax
cmp eax, ebx
mov byte [esp + 0xc8], 8
je 0x406eda
mov ecx, dword [esp + 0x38]
mov edx, dword [ebp + 0x7c]
push 0x3f800000
push ecx
push edx
mov ecx, eax
call fcn.00404970
jmp 0x406edc
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.004822a9
mov ecx, dword [esi + 0x20]
mov dword [eax], ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0xc8], 6
call fcn.00482c2a
jmp 0x4070e0
mov edx, dword [esp + 0x10]
push str.DEST
push edx
call fcn.00462206
add esp, 8
mov edi, 3
test eax, eax
jne 0x406f54
cmp dword [esp + 0x20], edi
jl 0x406f54
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
mov edi, dword [eax + 4]
push ecx
call fcn.00462c22
push edi
mov ebp, eax
call fcn.00462c22
mov dword [esi], eax
add esp, 8
mov dword [esi + 4], ebp
jmp 0x4070e0
mov eax, dword [esp + 0x10]
push 0x4a7350
push eax
call fcn.00462206
add esp, 8
test eax, eax
jne 0x406f96
cmp dword [esp + 0x20], edi
jl 0x406f96
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
mov edi, dword [eax + 4]
push ecx
call fcn.00462c22
push edi
mov ebp, eax
call fcn.00462c22
mov dword [esi + 8], eax
add esp, 8
mov dword [esi + 0xc], ebp
jmp 0x4070e0
mov ecx, dword [esp + 0x10]
push str.SIZE
push ecx
call fcn.00462206
add esp, 8
test eax, eax
jne 0x406fd8
cmp dword [esp + 0x20], edi
jl 0x406fd8
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
mov edi, dword [eax + 4]
push ecx
call fcn.00462c22
push edi
mov ebp, eax
call fcn.00462c22
mov dword [esi + 0x10], eax
add esp, 8
mov dword [esi + 0x14], ebp
jmp 0x4070e0
mov edx, dword [esp + 0x10]
push str.OFFSET
push edx
call fcn.00462206
add esp, 8
test eax, eax
jne 0x40701a
cmp dword [esp + 0x20], edi
jl 0x40701a
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
mov edi, dword [eax + 4]
push ecx
call fcn.00462c22
push edi
mov ebp, eax
call fcn.00462c22
mov dword [esi + 0x18], eax
add esp, 8
mov dword [esi + 0x1c], ebp
jmp 0x4070e0
mov eax, dword [esp + 0x10]
push str.ALPHA
push eax
call fcn.00462206
add esp, 8
mov edi, 2
test eax, eax
jne 0x407066
cmp dword [esp + 0x20], edi
jl 0x407066
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 4]
push eax
call fcn.00462c22
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 0x4070e0
mov ecx, dword [esp + 0x10]
push str.TYPE
push ecx
call fcn.00462206
add esp, 8
test eax, eax
jne 0x4070b1
cmp dword [esp + 0x20], edi
jl 0x4070b1
xor ebp, ebp
mov edi, 0x4a70f0
mov edx, dword [esp + 0x1c]
mov eax, dword [edi]
push eax
mov ecx, dword [edx + 4]
push ecx
call fcn.00462206
add esp, 8
test eax, eax
jne 0x4070a3
mov dword [esi + 0x24], ebp
add edi, 4
inc ebp
cmp edi, str.MOUTH
jb 0x407089
jmp 0x4070e0
mov eax, dword [esp + 0x10]
push 0x4a732c
push eax
call fcn.00462206
add esp, 8
test eax, eax
jne 0x4070e0
cmp dword [esp + 0x20], edi
jl 0x4070e0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 4]
push eax
call fcn.00462c22
add esp, 4
mov dword [esi + 0x2c], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0xc8], 5
call fcn.00482c2a
lea edx, [esp + 0x18]
lea eax, [esp + 0x7c]
push edx
push eax
call fcn.00401750
add esp, 8
test eax, eax
jne 0x406de2
jmp 0x40711e
lea ecx, [esp + 0x10]
mov byte [esp + 0xc8], 5
call fcn.00482c2a
cmp dword [esi + 0x24], ebx
jne 0x4071fd
mov ebp, dword [esi + 0x20]
cmp ebp, ebx
je 0x4071fd
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, 0x18
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 [0x4964c4]
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 [0x4964cc]
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.00482c2a
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 0x406cc4
jmp 0x407243
lea ecx, [esp + 0x14]
mov byte [esp + 0xc8], 3
call fcn.00482c2a
mov ecx, dword [edi]
mov eax, dword [ebp + 0xec]
add eax, ecx
mov dword [ebp + 0xec], eax
jmp 0x407293
mov edx, dword [esp + 0x3c]
push str.SIZE
push edx
call fcn.00462206
add esp, 8
test eax, eax
jne 0x407297
cmp dword [esp + 0x20], 3
jl 0x407297
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
mov esi, dword [eax + 4]
push ecx
call fcn.00462c22
push esi
mov edi, eax
call fcn.00462c22
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.00482c2a
lea eax, [esp + 0x18]
lea ecx, [esp + 0x7c]
push eax
push ecx
call fcn.00401750
add esp, 8
test eax, eax
jne 0x406c31
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x4c]
lea ecx, [esp + 0x18]
mov byte [esp + 0xc8], 1
call fcn.004818c6
lea ecx, [esp + 0x7c]
mov byte [esp + 0xc8], 0
call fcn.00489051
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.0048299f
lea eax, [esp + 0x44]
push eax
call fcn.00401080
add esp, 8
lea ecx, [esp + 0x40]
call fcn.00482c2a
lea ecx, [esp + 0x48]
mov dword [esp + 0xc8], 0xffffffff
call fcn.00482c2a
mov esi, dword [esp + 0x34]
jmp 0x407375
push 0x34
call fcn.00483177
add esp, 4
mov dword [esp + 0x44], eax
test eax, eax
mov dword [esp + 0xc8], 9
je 0x407365
mov ecx, dword [esi + 0x7c]
push 0x3f800000
push ebp
push ecx
mov ecx, eax
call fcn.00404970
jmp 0x407367
xor eax, eax
mov dword [esi], eax
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
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