Function at 0x4091b0
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x451784
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x344
mov al, byte [0x466490]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov byte [esp + 0x154], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x155]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x466498]
mov edi, dword [esp + 0x36c]
test edi, edi
mov ecx, dword [eax + 0x774]
mov edx, dword [eax + 0xab4]
mov ebp, dword [eax + 0xc]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 0xfb0]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0x880]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], ecx
mov dword [esp + 0x48], edx
jne 0x409248
mov edi, str.Chrome_Ball
add eax, 0x77c
push eax
lea eax, [esp + 0x54]
push str._sDataBalls.gam
push eax
call fcn.004294a1
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x50]
lea edx, [esp + 0x254]
push ecx
push 0x100
push edx
push str.Ball.scb
push str.Geometry
push edi
call ebx
lea eax, [esp + 0x50]
lea ecx, [esp + 0x154]
push eax
push 0x100
push ecx
push 0x466490
push str.Texture
push edi
call ebx
mov al, byte [esp + 0x154]
test al, al
je 0x40932a
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea edx, [esp + 0x50]
push edx
push 0
push str.MapFromFile
push edi
call ebx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x50]
push eax
push 0
push str.NoEnvMap
push edi
call ebx
neg eax
sbb eax, eax
lea ecx, [esp + 0x154]
inc eax
push ecx
mov dword [esi + 0xd0], eax
mov edx, dword [0x466498]
add edx, 0x77c
lea eax, [esp + 0x54]
push edx
push str._sDataTextures_s
push eax
call fcn.004294a1
add esp, 0x10
lea ecx, [esp + 0x50]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x40]
push ebp
call fcn.0041cff0
test eax, eax
mov dword [esi + 0xcc], eax
je 0x4098c9
mov eax, dword [0x466498]
lea edx, [esp + 0x254]
add eax, 0x77c
push edx
push eax
lea ecx, [esp + 0x58]
push str._sDataModels_s
push ecx
call fcn.004294a1
lea edx, [esp + 0x60]
push edx
call fcn.00427ce0
add esp, 0x14
mov dword [esp + 0x34], eax
test eax, eax
je 0x4098c9
mov eax, dword [eax + 0x20]
test eax, eax
je 0x4098bc
mov edi, dword [eax + 0x128]
push 2
mov dword [esp + 0x3c], edi
mov eax, dword [edi + 4]
lea eax, [eax + eax*2]
push eax
call fcn.0042980b
add esp, 8
mov dword [esi + 0x88], eax
test eax, eax
je 0x4098bc
mov ecx, dword [edi]
push 0xc
push ecx
call fcn.0042980b
mov dword [esi + 0x84], eax
mov eax, dword [esi + 0xd0]
add esp, 8
test eax, eax
je 0x409526
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x409526
mov cl, byte [esp + 0x154]
test cl, cl
je 0x409526
push 0x1c
call fcn.00429112
mov ebx, eax
add esp, 4
mov dword [esp + 0x30], ebx
test ebx, ebx
mov dword [esp + 0x35c], 0
je 0x409405
mov ecx, ebx
call fcn.004234f0
mov dword [ebx], 0x453488
mov ecx, ebx
jmp 0x409407
xor ecx, ecx
test ecx, ecx
mov dword [esp + 0x35c], 0xffffffff
mov dword [esi + 0x80], ecx
je 0x4098bc
mov eax, dword [edi]
mov edx, dword [ecx]
push 4
push eax
call dword [edx]
test eax, eax
je 0x4098bc
mov ebp, dword [edi]
dec ebp
js 0x4096fa
lea ebx, [ebp*8]
lea eax, [ebp + ebp*2]
sub ebx, ebp
shl ebx, 3
shl eax, 2
mov dword [esp + 0x1c], eax
mov ecx, dword [edi + 8]
mov edx, dword [ebx + ecx]
lea eax, [ebx + ecx]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x84]
mov dword [eax + ecx], edx
mov ecx, dword [edi + 8]
mov edx, dword [esi + 0x84]
mov ecx, dword [ebx + ecx + 0x10]
mov dword [eax + edx + 4], ecx
mov edx, dword [edi + 8]
mov ecx, dword [esi + 0x84]
mov edx, dword [ebx + edx + 0x14]
mov dword [eax + ecx + 8], edx
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x80]
push edx
mov edx, dword [esp + 0x18]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x18]
push edx
push ebp
call dword [eax + 4]
mov eax, dword [edi + 8]
mov ecx, dword [esi + 0x80]
add eax, ebx
push 0
mov dword [esp + 0x30], eax
mov edx, dword [ecx]
mov eax, dword [eax + 0x2c]
push eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x28]
push eax
push ebp
call dword [edx + 0x14]
fld dword [esp + 0x10]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 0x41
jne 0x4094f3
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
fld dword [esp + 0x14]
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 0x41
jne 0x40950a
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x1c]
dec ebp
sub edx, 0xc
sub ebx, 0x38
test ebp, ebp
mov dword [esp + 0x1c], edx
jge 0x409451
jmp 0x4096fa
or ebp, 0xffffffff
test eax, eax
je 0x409582
push 0x1c
call fcn.00429112
mov ebx, eax
add esp, 4
mov dword [esp + 0x30], ebx
test ebx, ebx
mov dword [esp + 0x35c], 1
je 0x40955d
mov ecx, ebx
call fcn.004234f0
mov dword [ebx], 0x453454
mov ecx, ebx
jmp 0x40955f
xor ecx, ecx
test ecx, ecx
mov dword [esp + 0x35c], ebp
mov dword [esi + 0x78], ecx
je 0x4098bc
mov edx, dword [edi]
mov eax, dword [ecx]
push 4
push edx
call dword [eax]
test eax, eax
je 0x4098bc
mov al, byte [esp + 0x154]
test al, al
je 0x4095e2
push 0x1c
call fcn.00429112
mov ebx, eax
add esp, 4
mov dword [esp + 0x30], ebx
test ebx, ebx
mov dword [esp + 0x35c], 2
je 0x4095bd
mov ecx, ebx
call fcn.004234f0
mov dword [ebx], 0x453454
mov ecx, ebx
jmp 0x4095bf
xor ecx, ecx
test ecx, ecx
mov dword [esp + 0x35c], ebp
mov dword [esi + 0x7c], ecx
je 0x4098bc
mov edx, dword [edi]
mov eax, dword [ecx]
push 4
push edx
call dword [eax]
test eax, eax
je 0x4098bc
mov ebx, dword [edi]
dec ebx
js 0x4096fa
lea ebp, [ebx*8]
lea edx, [ebx + ebx*2]
sub ebp, ebx
shl ebp, 3
shl edx, 2
mov dword [esp + 0x1c], edx
jmp 0x409607
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + 8]
add eax, ebp
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x84]
mov dword [edx + ecx], eax
mov ecx, dword [edi + 8]
mov eax, dword [esi + 0x84]
mov ecx, dword [ecx + ebp + 0x10]
mov dword [edx + eax + 4], ecx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 0x84]
mov eax, dword [eax + ebp + 0x14]
mov dword [edx + ecx + 8], eax
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x40966e
mov eax, dword [esp + 0x18]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push eax
push ebx
call dword [edx + 4]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x4096b9
mov eax, dword [esp + 0x18]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push eax
push ebx
call dword [edx + 4]
mov ecx, dword [esi + 0x7c]
push 0xffffffffffffffff
push ebx
mov edx, dword [ecx]
call dword [edx + 0xc]
mov eax, dword [edi + 8]
mov ecx, dword [esi + 0x7c]
add eax, ebp
push 0
mov dword [esp + 0x30], eax
mov edx, dword [ecx]
mov eax, dword [eax + 0x2c]
push eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x28]
push eax
push ebx
call dword [edx + 0x14]
mov edx, dword [esp + 0x1c]
fld dword [esp + 0x10]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 0x41
jne 0x4096d0
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
fld dword [esp + 0x14]
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 0x41
jne 0x4096e7
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
dec ebx
sub edx, 0xc
sub ebp, 0x38
mov dword [esp + 0x1c], edx
test ebx, ebx
jge 0x409603
mov eax, dword [esi + 0x80]
test eax, eax
je 0x40970a
mov dword [esp + 0x1c], eax
jmp 0x40971e
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x409717
mov dword [esp + 0x1c], eax
jmp 0x40971e
mov ecx, dword [esi + 0x78]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x409797
mov edi, dword [edi]
dec edi
js 0x409797
fld dword [esp + 0x20]
fadd st(0), st(0)
lea ebx, [edi*8]
sub ebx, edi
shl ebx, 3
fstp dword [esp + 0x2c]
fld dword [esp + 0x24]
fadd st(0), st(0)
fstp dword [esp + 0x28]
mov edx, dword [esp + 0x38]
push 0
mov eax, dword [edx + 8]
add eax, ebx
fld dword [eax]
fadd dword [esp + 0x24]
mov ecx, dword [eax + 4]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x20]
fdiv dword [esp + 0x30]
mov edx, dword [ecx]
fstp dword [esp + 0x40]
fld dword [esp + 0x18]
fadd dword [esp + 0x28]
fdiv dword [esp + 0x2c]
fstp dword [esp + 0x44]
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x44]
push eax
push edi
call dword [edx + 0x14]
dec edi
sub ebx, 0x38
test edi, edi
jge 0x40974b
mov edi, dword [esp + 0x38]
xor ecx, ecx
mov dword [esp + 0x28], ecx
cmp dword [edi + 4], ecx
jle 0x4097e8
mov eax, 0xc
mov dword [esp + 0x24], eax
mov edx, 3
mov ebx, dword [edi + 0xc]
mov ebp, dword [esi + 0x88]
inc ecx
mov bx, word [eax + ebx]
add eax, 2
mov word [ebp + ecx*2 - 2], bx
dec edx
jne 0x4097b4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ebx, dword [edi + 4]
inc edx
add eax, 0x18
cmp edx, ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
jl 0x4097af
mov eax, dword [esi + 0x78]
test eax, eax
je 0x4097fb
mov edx, dword [esi + 0x88]
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], edx
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x40980e
mov edx, dword [esi + 0x88]
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], edx
mov eax, dword [esi + 0x80]
test eax, eax
je 0x409824
mov edx, dword [esi + 0x88]
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], edx
mov eax, dword [edi + 4]
push 0xc
lea ecx, [eax + eax*2]
shl ecx, 1
push ecx
call fcn.0042980b
mov dword [esi + 0x90], eax
mov eax, dword [edi + 4]
push 0xc
lea edx, [eax + eax*2]
shl edx, 1
push edx
call fcn.0042980b
mov dword [esi + 0x94], eax
mov eax, dword [edi + 4]
push 0xc
lea eax, [eax + eax*2]
shl eax, 1
push eax
call fcn.0042980b
push 0x1c
mov dword [esi + 0x98], eax
call fcn.00429112
mov ebx, eax
add esp, 0x1c
mov dword [esp + 0x30], ebx
test ebx, ebx
mov dword [esp + 0x35c], 3
je 0x409896
mov ecx, ebx
call fcn.004234f0
mov dword [ebx], 0x453454
mov ecx, ebx
jmp 0x409898
xor ecx, ecx
mov dword [esi + 0x8c], ecx
mov eax, dword [edi + 4]
mov edx, dword [ecx]
push 4
lea eax, [eax + eax*2]
mov dword [esp + 0x360], 0xffffffff
shl eax, 1
push eax
call dword [edx]
test eax, eax
jne 0x4098d7
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00427db0
add esp, 4
mov ecx, esi
call fcn.00409e60
xor eax, eax
jmp 0x409e37
mov edi, dword [edi + 4]
xor ebx, ebx
dec edi
js 0x409c3e
lea edx, [edi + edi*2]
inc edi
mov dword [esp + 0x2c], edi
lea eax, [edx*8 + 0x10]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
lea ebp, [ebx + ebx*2]
shl ebp, 2
add ecx, 0xfffffffc
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], 3
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x20]
xor eax, eax
push 0
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
mov ax, word [edx + edi]
lea edx, [eax*8]
sub edx, eax
lea edi, [ecx + edx*8]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x40]
mov edx, dword [edx]
push ecx
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x28]
push eax
call dword [edx + 0x28]
mov ecx, dword [esi + 0x8c]
push 0xffffffffffffffff
push ebx
mov edx, dword [ecx]
call dword [edx + 0xc]
mov edx, dword [edi + 8]
mov ecx, dword [esi + 0x8c]
push edx
mov edx, dword [edi + 4]
mov eax, dword [ecx]
push edx
mov edx, dword [edi]
push edx
push ebx
call dword [eax + 4]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esi + 0x8c]
push 0
push edx
mov edx, dword [esp + 0x48]
mov eax, dword [ecx]
push edx
push ebx
call dword [eax + 0x14]
mov eax, dword [esi + 0x94]
mov ecx, dword [edi]
fld dword [esp + 0x10]
mov dword [eax + ebp], ecx
mov edx, dword [esi + 0x94]
mov eax, dword [edi + 4]
inc ebx
mov dword [edx + ebp + 4], eax
mov ecx, dword [esi + 0x94]
mov edx, dword [edi + 8]
mov dword [ecx + ebp + 8], edx
mov eax, dword [esi + 0x90]
mov ecx, dword [edi + 0xc]
mov dword [eax + ebp], ecx
mov edx, dword [esi + 0x90]
mov eax, dword [edi + 0x10]
mov dword [edx + ebp + 4], eax
mov ecx, dword [esi + 0x90]
mov edx, dword [edi + 0x14]
mov eax, dword [esp + 0x28]
mov dword [ecx + ebp + 8], edx
mov ecx, dword [esp + 0x20]
fadd dword [edi]
add ebp, 0xc
add ecx, 2
dec eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], eax
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fadd dword [edi + 4]
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fadd dword [edi + 8]
fstp dword [esp + 0x18]
jne 0x409927
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [esp + 0x10]
faddp st(1)
fcom dword [0x453440]
fnstsw ax
test ah, 0x40
jne 0x409a76
fsqrt
fdivr dword [0x45343c]
fld st(0)
fmul dword [esp + 0x10]
fstp dword [esp + 0x10]
fld st(0)
fmul dword [esp + 0x14]
fstp dword [esp + 0x14]
fmul dword [esp + 0x18]
fstp dword [esp + 0x18]
jmp 0x409a78
fstp st(0)
mov eax, dword [esi + 0x98]
lea edi, [ebx + ebx*2]
fld dword [esp + 0x10]
shl edi, 2
mov dword [esp + 0x28], 3
fstp dword [edi + eax - 0xc]
mov ecx, dword [esi + 0x98]
lea eax, [ebx + ebx*2 - 6]
fld dword [esp + 0x14]
fstp dword [edi + ecx - 8]
mov edx, dword [esi + 0x98]
fld dword [esp + 0x18]
fstp dword [edi + edx - 4]
mov ecx, dword [esi + 0x98]
fld dword [esp + 0x10]
fstp dword [ecx + eax*4]
mov edx, dword [esi + 0x98]
lea ecx, [ebx + ebx*2 - 9]
fld dword [esp + 0x14]
fstp dword [edi + edx - 0x14]
mov eax, dword [esi + 0x98]
fld dword [esp + 0x18]
fstp dword [edi + eax - 0x10]
mov edx, dword [esi + 0x98]
fld dword [esp + 0x10]
fstp dword [edx + ecx*4]
mov eax, dword [esi + 0x98]
mov edx, dword [esp + 0x24]
fld dword [esp + 0x14]
mov dword [esp + 0x20], edx
fstp dword [edi + eax - 0x20]
mov ecx, dword [esi + 0x98]
fld dword [esp + 0x18]
fstp dword [edi + ecx - 0x1c]
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x20]
xor eax, eax
push 0
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
mov ax, word [edx + ebp]
lea edx, [eax*8]
sub edx, eax
lea ebp, [ecx + edx*8]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x50]
mov edx, dword [edx]
push ecx
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x28]
push eax
call dword [edx + 0x28]
mov ecx, dword [esi + 0x8c]
push 0xffffffffffffffff
push ebx
mov edx, dword [ecx]
call dword [edx + 0xc]
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 0x8c]
push edx
mov edx, dword [ebp + 4]
mov eax, dword [ecx]
push edx
mov edx, dword [ebp]
push edx
push ebx
call dword [eax + 4]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esi + 0x8c]
push 0
push edx
mov edx, dword [esp + 0x38]
mov eax, dword [ecx]
push edx
push ebx
call dword [eax + 0x14]
mov eax, dword [esi + 0x94]
mov ecx, dword [ebp]
inc ebx
mov dword [eax + edi], ecx
mov edx, dword [esi + 0x94]
mov eax, dword [ebp + 4]
mov dword [edx + edi + 4], eax
mov ecx, dword [esi + 0x94]
mov edx, dword [ebp + 8]
mov dword [ecx + edi + 8], edx
mov eax, dword [esi + 0x90]
fld dword [ebp + 0xc]
fchs
fstp dword [eax + edi]
fld dword [ebp + 0x10]
mov ecx, dword [esi + 0x90]
add edi, 0xc
fchs
fstp dword [ecx + edi - 8]
fld dword [ebp + 0x14]
mov edx, dword [esi + 0x90]
fchs
fstp dword [edx + edi - 4]
mov eax, dword [esi + 0x98]
fld dword [esp + 0x10]
fstp dword [eax + edi - 0xc]
mov ecx, dword [esi + 0x98]
mov eax, dword [esp + 0x28]
fld dword [esp + 0x14]
fstp dword [ecx + edi - 8]
mov edx, dword [esi + 0x98]
mov ecx, dword [esp + 0x20]
fld dword [esp + 0x18]
sub ecx, 2
dec eax
fstp dword [edx + edi - 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], eax
jne 0x409b12
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
sub ecx, 0x18
dec eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], eax
jne 0x4098f6
mov eax, dword [esp + 0x44]
xor ebp, ebp
cmp eax, ebp
je 0x409cd9
fld dword [esp + 0x364]
fsub dword [0x453484]
mov ecx, dword [esp + 0x368]
mov dword [esi + 0xa4], 0x40f00000
mov dword [esi + 0xa0], ecx
fst dword [esi + 0x9c]
fld dword [esp + 0x368]
fmul dword [eax + 0x10]
fld st(1)
fmul dword [eax]
faddp st(1)
fld dword [eax + 0x20]
fmul dword [0x453480]
faddp st(1)
fadd dword [eax + 0x30]
fstp dword [esi + 0x30]
fld st(0)
fmul dword [eax + 4]
fld dword [esp + 0x368]
fmul dword [eax + 0x14]
faddp st(1)
fld dword [eax + 0x24]
fmul dword [0x453480]
faddp st(1)
fadd dword [eax + 0x34]
fstp dword [esi + 0x34]
fmul dword [eax + 8]
fld dword [esp + 0x368]
fmul dword [eax + 0x18]
faddp st(1)
fld dword [eax + 0x28]
fmul dword [0x453480]
faddp st(1)
fadd dword [eax + 0x38]
fstp dword [esi + 0x38]
mov edx, dword [esp + 0x34]
push edx
call fcn.00427db0
push 0x18
call fcn.00429112
add esp, 8
mov dword [esp + 0x44], eax
cmp eax, ebp
mov dword [esp + 0x35c], 4
je 0x409d09
mov ecx, eax
call fcn.00418940
jmp 0x409d0b
xor eax, eax
mov edi, dword [esp + 0x48]
mov dword [esi + 0xdc], eax
mov edx, dword [0x466498]
or ebx, 0xffffffff
mov cl, byte [edi + 0xc0c]
lea eax, [edi + 0xc0c]
neg cl
sbb ecx, ecx
add edx, 0x77c
and eax, ecx
mov dword [esp + 0x35c], ebx
push eax
push edx
lea eax, [esp + 0x58]
push str._sDataSound_s
push eax
call fcn.004294a1
mov eax, dword [0x466498]
add esp, 0x10
lea edx, [esp + 0x50]
mov ecx, dword [eax + 0xf48]
mov eax, dword [eax + 0xf4c]
push edx
push ecx
mov ecx, dword [esi + 0xdc]
push eax
call fcn.004189a0
test eax, eax
jne 0x409d8e
mov ecx, dword [esi + 0xdc]
cmp ecx, ebp
je 0x409d8e
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0xdc], ebp
push 0x18
call fcn.00429112
add esp, 4
mov dword [esp + 0x48], eax
cmp eax, ebp
mov dword [esp + 0x35c], 5
je 0x409db4
mov ecx, eax
call fcn.00418940
jmp 0x409db6
xor eax, eax
mov dword [esi + 0xe0], eax
mov cl, byte [edi + 0xb0c]
lea eax, [edi + 0xb0c]
mov edx, dword [0x466498]
neg cl
sbb ecx, ecx
add edx, 0x77c
and eax, ecx
mov dword [esp + 0x35c], ebx
push eax
push edx
lea eax, [esp + 0x58]
push str._sDataSound_s
push eax
call fcn.004294a1
mov eax, dword [0x466498]
add esp, 0x10
lea edx, [esp + 0x50]
mov ecx, dword [eax + 0xf48]
mov eax, dword [eax + 0xf4c]
push edx
push ecx
mov ecx, dword [esi + 0xe0]
push eax
call fcn.004189a0
test eax, eax
jne 0x409e32
mov ecx, dword [esi + 0xe0]
cmp ecx, ebp
je 0x409e32
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0xe0], ebp
mov eax, 1
mov ecx, dword [esp + 0x354]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x350
ret 0xc