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

Disassembly:
sub esp, 0xc4
mov eax, dword [0x500030]
xor eax, esp
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xc8]
push ebx
push ebp
mov ebp, dword [esp + 0xd4]
push esi
push edi
mov edi, dword [sym.imp.MSVCR90.dll_sprintf]
mov esi, ecx
push esi
lea ecx, [esp + 0x80]
push str._sctrl
push ecx
mov dword [esp + 0x2c], eax
call edi
push esi
lea edx, [esp + 0xb4]
push str._sctrldef
push edx
call edi
lea eax, [esp + 0x94]
add esp, 0x18
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4719e0
sub eax, edx
mov ebx, eax
lea eax, [esp + 0xa4]
push eax
mov esi, ebp
mov dword [esp + 0x28], ebx
call fcn.0046a450
lea ecx, [esp + 0x80]
push ecx
mov edi, eax
call fcn.0046a450
mov esi, eax
add esp, 8
sub esi, edi
mov dword [esp + 0x1c], esi
je 0x471eaf
mov edi, dword [esp + 0x20]
push 0x54
push esi
mov dword [edi + 0x48], esi
call dword [sym.imp.MSVCR90.dll_calloc]
add esp, 8
test eax, eax
jne 0x471a3f
mov dword [0x50410c], 1
mov dword [edi + 0x44], eax
test eax, eax
je 0x471eee
push 0x54
lea edx, [esp + 0x2c]
push 0
push edx
call sub.MSVCR90.dll_memset
or eax, 0xffffffff
add esp, 0xc
mov ecx, ebp
mov dword [esp + 0x58], 0
mov dword [esp + 0x64], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x54], eax
mov dword [ebp + 0x18], eax
call fcn.0046a3f0
mov edi, eax
xor eax, eax
cmp esi, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], eax
jle 0x471eaf
mov dword [esp + 0x14], eax
jmp 0x471aa8
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 0x30]
je 0x471c4b
jmp 0x471aba
mov edi, dword [esp + 0x10]
lea eax, [ebx + 3]
lea esi, [edi + 1]
push eax
lea eax, [esp + 0xa8]
mov ecx, esi
call fcn.00461530
add esp, 4
test eax, eax
je 0x471bb3
movsx eax, byte [edi + ebx + 4]
lea ecx, [eax - 1]
cmp ecx, 0x7e
ja 0x471af5
push eax
call dword [sym.imp.MSVCR90.dll_isspace]
add esp, 4
test eax, eax
jne 0x471b00
cmp byte [edi + ebx + 4], 0x5d
jne 0x471bb3
push 0x54
lea edx, [esp + 0x2c]
push 0
push edx
call sub.MSVCR90.dll_memset
or eax, 0xffffffff
push str.looptime
push ebp
mov dword [esp + 0x6c], 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x68], eax
call fcn.0046a5e0
add esp, 0x14
test eax, eax
je 0x471b45
push eax
call dword [sym.imp.MSVCR90.dll_atoi]
add esp, 4
mov dword [esp + 0x64], eax
push str.eventID
push ebp
call fcn.0046a5e0
add esp, 8
test eax, eax
je 0x471b65
push eax
call dword [sym.imp.MSVCR90.dll_atoi]
add esp, 4
mov dword [esp + 0x54], eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x4c]
push eax
push str._i__i__i__i__i__i__i__i__i__i
mov eax, str.ctrlid
mov ecx, ebp
call fcn.0046a960
add esp, 0x2c
mov dword [esp + eax*4 + 0x28], 0xffffffff
lea ecx, [esp + 0x7c]
mov eax, esi
call fcn.004614d0
test eax, eax
je 0x471be4
movsx eax, byte [edi + ebx + 1]
lea ecx, [eax - 1]
cmp ecx, 0x7e
ja 0x471bdd
push eax
call dword [sym.imp.MSVCR90.dll_isspace]
add esp, 4
test eax, eax
jne 0x471c4b
cmp byte [edi + ebx + 1], 0x5d
je 0x471c4b
mov esi, 1
add dword [ebp + 0x18], esi
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 0x30]
jl 0x471bfe
mov dword [esp + 0x10], 0
jmp 0x471c3f
mov edx, dword [ebp + 0x2c]
lea ecx, [edx + eax*4]
mov eax, dword [ecx]
inc eax
mov dword [ebp + 0xc], eax
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x24]
mov edx, dword [eax + edx*4]
sub edx, dword [ebp + 4]
mov dword [ebp + 0x10], edx
mov ecx, dword [ecx]
mov edx, dword [eax + ecx*4]
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [ebp + 0x28]
mov dword [ebp + 0x1c], 0
jge 0x471c38
mov eax, dword [eax + ecx*4]
cmp byte [eax], 0x5b
jne 0x471c3b
mov dword [ebp + 0x1c], esi
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + 0x18]
cmp ecx, dword [ebp + 0x30]
jne 0x471ab6
mov edx, dword [esp + 0x20]
mov ebx, dword [edx + 0x44]
add ebx, dword [esp + 0x14]
mov ecx, 0x15
lea esi, [esp + 0x28]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x24]
push eax
lea ecx, [ebx + 0x20]
push ecx
lea edx, [ebx + 0x1c]
push edx
lea eax, [ebx + 0x18]
push eax
lea ecx, [ebx + 0x14]
push ecx
lea edx, [ebx + 0x10]
push edx
lea eax, [ebx + 0xc]
push eax
lea ecx, [ebx + 8]
push ecx
lea edx, [ebx + 4]
push edx
push ebx
push str._i__i__i__i__i__i__i__i__i__i
mov eax, str.ctrlid
mov ecx, ebp
call fcn.0046a960
add esp, 0x2c
mov dword [ebx + eax*4], 0xffffffff
cmp dword [ebx], 0xffffffff
jne 0x471cb5
mov ecx, 0xb
lea esi, [esp + 0x28]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push str.type
push ebp
call fcn.0046a5e0
mov esi, eax
add esp, 8
test esi, esi
je 0x471ecd
mov edi, dword [sym.imp.MSVCR90.dll__stricmp]
push str.visible
push esi
call edi
add esp, 8
test eax, eax
jne 0x471cee
mov dword [ebx + 0x30], 1
jmp 0x471de8
push str.enable
push esi
call edi
add esp, 8
test eax, eax
jne 0x471d09
mov dword [ebx + 0x30], 2
jmp 0x471de8
push str.velset
push esi
call edi
add esp, 8
test eax, eax
jne 0x471d24
mov dword [ebx + 0x30], 4
jmp 0x471de8
push str.veladd
push esi
call edi
add esp, 8
test eax, eax
jne 0x471d3f
mov dword [ebx + 0x30], 6
jmp 0x471de8
push str.posset
push esi
call edi
add esp, 8
test eax, eax
jne 0x471d5a
mov dword [ebx + 0x30], 3
jmp 0x471de8
push str.posadd
push esi
call edi
add esp, 8
test eax, eax
jne 0x471d72
mov dword [ebx + 0x30], 5
jmp 0x471de8
push str.anim
push esi
call edi
add esp, 8
test eax, eax
jne 0x471d8a
mov dword [ebx + 0x30], 8
jmp 0x471de8
push str.sinx
push esi
call edi
add esp, 8
test eax, eax
jne 0x471da2
mov dword [ebx + 0x30], 0xb
jmp 0x471de8
push str.siny
push esi
call edi
add esp, 8
test eax, eax
jne 0x471dba
mov dword [ebx + 0x30], 0xc
jmp 0x471de8
push str.null
push esi
call edi
add esp, 8
test eax, eax
jne 0x471dce
mov dword [ebx + 0x30], eax
jmp 0x471de8
push str.dummy
push esi
call edi
add esp, 8
test eax, eax
jne 0x471ef2
mov dword [ebx + 0x30], 0x14
lea eax, [ebx + 0x3c]
push eax
lea esi, [ebx + 0x38]
push esi
lea edi, [ebx + 0x34]
push edi
push str._i__i__i
mov eax, str.time
mov ecx, ebp
call fcn.0046a960
add esp, 0x10
cmp eax, 2
jge 0x471e11
mov ecx, dword [edi]
mov dword [esi], ecx
mov eax, dword [ebx + 0x30]
dec eax
cmp eax, 0xb
ja case.0x471e21.7
movzx edx, byte [eax + 0x471f1c]
jmp dword [edx*4 + 0x471f0c]
add ebx, 0x40
push ebx
mov eax, str.value
mov ecx, ebp
call fcn.0046a900
add esp, 4
jmp case.0x471e21.7
fld dword [0x4fd8a8]
lea esi, [ebx + 0x48]
add ebx, 0x44
fst dword [esi]
push ebx
fstp dword [ebx]
mov eax, 0x4f0660
mov ecx, ebp
call fcn.0046a8a0
push esi
mov eax, 0x4f065c
mov ecx, ebp
call fcn.0046a8a0
add esp, 8
jmp case.0x471e21.7
lea eax, [ebx + 0x4c]
push eax
lea ecx, [ebx + 0x48]
push ecx
add ebx, 0x44
push ebx
push str._f__f__f
mov eax, str.value
mov ecx, ebp
call fcn.0046a960
add esp, 0x10
mov ecx, ebp
call fcn.0046a3f0
add dword [esp + 0x14], 0x54
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
jl 0x471aa0
mov eax, 1
mov ecx, dword [esp + 0xd0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004dc814
add esp, 0xc4
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
push str._i__i__s:_Missing__type__parameter._n
mov edx, 3
call fcn.0046c3c0
add esp, 0x10
xor eax, eax
jmp 0x471eb4
push esi
push str.Invalid_ctrl_type:__s_n
mov edx, 3
call fcn.0046c3c0
add esp, 8
xor eax, eax
jmp 0x471eb4