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

Disassembly:
sub esp, 0x124
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea ecx, [esp + 0x68]
mov dword [esp + 0x18], ebx
call fcn.004f4ce0
mov ebp, dword [esp + 0x138]
mov eax, dword [ebp + 4]
mov ebx, dword [ebx + 0x24]
xor esi, esi
xor edi, edi
cmp eax, 1
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], esi
jne 0x49b3fa
mov esi, dword [ebp + 0xf50]
mov eax, dword [ebp]
inc esi
mov dword [ebp + 0xf50], esi
mov esi, 1
mov edi, ebp
push esi
mov ecx, ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], esi
call dword [eax + 0x5c]
test eax, eax
je 0x49b3fa
mov ecx, dword [ebp + 0x488]
mov edx, dword [ecx + 0x2f4]
mov eax, esi
cmp edx, eax
jne 0x49b3fa
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 4]
test eax, eax
jne 0x49b41c
mov edx, dword [esp + 0x18]
push edx
mov ecx, ebp
call fcn.0048d590
push eax
lea eax, [esp + 0x60]
push eax
mov ecx, ebp
call fcn.0048da70
jmp 0x49b428
lea ecx, [esp + 0x5c]
push ecx
mov ecx, ebp
call fcn.004ce0e0
test esi, esi
je 0x49b4b0
mov ecx, dword [edi + 0x690]
test ecx, ecx
je 0x49b468
cmp dword [edi + 0x688], 0x40
je 0x49b468
push edi
call fcn.004893f0
mov ecx, dword [edi + 0x690]
push eax
call fcn.0048d560
mov ecx, dword [edi + 0x690]
push eax
lea edx, [esp + 0x60]
push edx
call fcn.0048da70
jmp 0x49b4b0
fld dword [ebp + 0x324]
fld dword [ebp + 0xe2c]
fadd st(0), st(0)
fsubp st(1)
fld dword [ebp + 0x328]
fld dword [ebp + 0x32c]
fstp dword [esp + 0xc8]
fxch st(1)
fadd dword [esp + 0x5c]
fstp dword [esp + 0x5c]
fld dword [esp + 0x60]
fadd st(1)
fstp dword [esp + 0x60]
fstp st(0)
fld dword [esp + 0x64]
fadd dword [esp + 0xc8]
fstp dword [esp + 0x64]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x40]
push eax
push ebp
call fcn.0049b2f0
test esi, esi
je 0x49b562
mov eax, dword [esp + 0x13c]
test eax, eax
jne 0x49b53d
fld dword [esp + 0x60]
fmul dword [0x5da740]
fmul dword [0x5da6c4]
fstp dword [esp + 0x24]
mov esi, dword [esp + 0x24]
push esi
call fcn.004beaf0
fstp dword [esp + 0x28]
push esi
call fcn.004beac0
fmul dword [0x5da6e8]
fld dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
fmul dword [0x5da6e8]
add esp, 8
fxch st(1)
fadd dword [esp + 0x40]
fstp dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
fld dword [esp + 0x44]
fstp dword [esp + 0x38]
fld dword [esp + 0x48]
mov edx, dword [esp + 0x38]
fadd st(1)
fstp dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
fstp st(0)
jmp 0x49b545
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], edx
push ecx
lea edx, [esp + 0x44]
push edx
mov ecx, edi
mov dword [esp + 0x38], eax
call fcn.00457740
mov eax, dword [esp + 0x60]
fld dword [esp + 0x5c]
mov dword [esp + 0x4c], eax
fchs
mov eax, dword [esp + 0x20]
fstp dword [esp + 0x24]
test eax, eax
je 0x49b62f
mov ecx, dword [edi + 0x488]
fld dword [ecx + 0x384]
fcomp dword [0x5dfbc8]
fnstsw ax
test ah, 0x44
jnp 0x49b62f
add ecx, 0x378
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x34], edx
fld dword [esp + 0x34]
fsub dword [esp + 0x40]
mov dword [esp + 0x38], eax
fld dword [esp + 0x38]
mov dword [esp + 0x3c], ecx
fsub dword [esp + 0x44]
fld dword [esp + 0x3c]
fsub dword [esp + 0x48]
fld st(2)
fld st(1)
fpatan
fcom dword [0x60477c]
fnstsw ax
test ah, 5
jp 0x49b5e8
fadd dword [0x5da6c4]
fmul dword [0x5da6bc]
fmul dword [0x5da6b8]
fstp dword [esp + 0x4c]
fld st(0)
fmul st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fxch st(2)
fpatan
fstp st(1)
fcom dword [0x60477c]
fnstsw ax
test ah, 5
jp 0x49b61f
fadd dword [0x5da6c4]
fmul dword [0x5da6bc]
fmul dword [0x5da6b8]
fstp dword [esp + 0x24]
lea edx, [esp + 0x40]
push edx
push ebp
call fcn.0049b280
mov dword [esp + 0x70], eax
mov eax, dword [ebx + 0x28c]
add esp, 8
test esi, esi
mov dword [esp + 0x10], eax
je 0x49b69d
mov eax, dword [edi + 0x62c]
test eax, eax
je 0x49b69d
cmp dword [eax + 4], 1
jne 0x49b69d
mov ecx, edi
call fcn.0047cc70
fadd dword [esp + 0x10]
mov edx, dword [edi]
mov ecx, edi
fstp dword [esp + 0x10]
call dword [edx + 0x30]
test eax, eax
je 0x49b69d
mov esi, dword [edi + 0x62c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
test eax, eax
je 0x49b699
mov ecx, esi
call fcn.00403810
fmul dword [esp + 0x10]
fstp dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, dword [0x68008c]
test byte [ecx + 0x1b8c], 1
mov eax, 2
je 0x49b6c1
cmp dword [ebx + 0xc0], eax
jne 0x49b6c1
mov dword [esp + 0x10], 0
cmp dword [esp + 0x20], 1
jne 0x49b6d8
cmp dword [ebx + 0xc0], eax
jne 0x49b6d8
mov dword [esp + 0x10], 0
push 0x7a
call fcn.004c0ce0
add esp, 4
test eax, eax
je 0x49b703
movzx edx, byte [ebp + 0x15]
movsx eax, byte [0x61b0ec]
cmp edx, eax
jne 0x49b703
fld dword [esp + 0x10]
fmul dword [0x5da70c]
fstp dword [esp + 0x10]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x49b719
fld dword [esp + 0x10]
fmul dword [0x5da6f0]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
mov ecx, dword [esp + 0x4c]
fcomp dword [0x60477c]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
fnstsw ax
test ah, 0x41
jne 0x49b850
test esi, esi
je 0x49b776
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
call dword [eax + 0x2c]
test eax, eax
je 0x49b764
mov ecx, edi
call fcn.004034e0
fmul dword [esp + 0x10]
fstp dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov edx, dword [edi]
push eax
push 4
mov ecx, edi
call dword [edx + 0x6c]
fstp dword [esp + 0x10]
movzx ecx, byte [ebp + 0x15]
movsx edx, byte [0x61b0ec]
cmp ecx, edx
je 0x49b79a
mov ecx, dword [0x680128]
push 4
call fcn.004f5cd0
fdivr dword [esp + 0x10]
fstp dword [esp + 0x10]
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x49b7cc
test esi, esi
je 0x49b7ef
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 0x5c]
test eax, eax
je 0x49b7ef
cmp dword [ebx + 0xc0], 2
jne 0x49b7ef
fld dword [esp + 0x10]
fmul dword [0x5da750]
fstp dword [esp + 0x10]
jmp 0x49b7ef
cmp eax, 1
jne 0x49b7ef
cmp dword [ebx + 0xc0], 2
jne 0x49b7ef
mov edx, dword [0x680098]
mov ecx, dword [edi + 0x488]
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x374], eax
fld dword [esp + 0x10]
mov esi, dword [esp + 0x10]
fchs
push esi
fstp dword [esp + 0x2c]
mov edi, dword [esp + 0x2c]
push edi
call fcn.004bd540
fadd dword [esp + 0x94]
push esi
push edi
fstp dword [esp + 0x9c]
call fcn.004bd540
fadd dword [esp + 0xa0]
add esp, 0x10
fstp dword [esp + 0x90]
mov eax, dword [ebx + 0xc0]
cmp eax, 2
jne 0x49b850
fld dword [esp + 0x10]
sub esp, 8
fstp qword [esp]
push str.FireCone___.2f_n
call fcn.0058c521
add esp, 0xc
mov eax, dword [ebx + 0xc0]
cmp eax, 0x13
mov esi, 0x100
ja case.0x49b86b.7
movzx ecx, byte [eax + 0x49c2c0]
jmp dword [ecx*4 + 0x49c29c]
mov dword [esp + 0x9c], 0x900
jmp case.0x49b86b.7
mov dword [esp + 0x9c], 0x8900
jmp case.0x49b86b.7
mov eax, dword [ebp + 4]
mov edi, 1
cmp eax, edi
jne 0x49b8c4
mov edx, dword [ebp]
push edi
mov ecx, ebp
call dword [edx + 0x5c]
test eax, eax
je 0x49b8c4
mov eax, dword [ebp + 0x488]
cmp dword [eax + 0x2f4], edi
mov dword [esp + 0x9c], 8
je 0x49b8cf
mov dword [esp + 0x9c], 0x28
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0xa8]
test eax, eax
je case.0x49b86b.7
mov dword [esp + 0x9c], 0x10000
jmp case.0x49b86b.7
mov dword [esp + 0x9c], 0x1000c
jmp case.0x49b86b.7
or dword [esp + 0x9c], 8
jmp case.0x49b86b.7
or dword [esp + 0x9c], 0x40000
jmp case.0x49b86b.7
or dword [esp + 0x9c], 4
jmp case.0x49b86b.7
mov dword [esp + 0x9c], esi
push 0x67
call fcn.00418ff0
mov ecx, dword [esp + 0xa0]
or ecx, 0x10
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa0], ecx
mov eax, dword [ebx + 0x15c]
add esp, 4
test eax, eax
je 0x49b95e
push 0x6d
call fcn.00418ff0
add esp, 4
mov dword [esp + 0xa4], eax
jmp 0x49b969
mov dword [esp + 0xa4], 0
mov edx, dword [ebx + 0xe8]
mov dword [esp + 0x88], edx
mov ecx, dword [ebx + 0xc0]
mov eax, 2
cmp ecx, eax
jne 0x49b999
fld dword [esp + 0x88]
fmul dword [0x5dfea4]
fstp dword [esp + 0x88]
mov ecx, dword [0x68008c]
movzx ecx, byte [ecx + 0x1b8c]
mov edx, 1
and ecx, edx
mov edi, ecx
mov ecx, dword [esp + 0x140]
test ecx, ecx
je 0x49ba02
mov eax, dword [esp + 0x13c]
test eax, eax
mov dword [esp + 0x98], edx
mov dword [esp + 0x94], 0x65
je 0x49c286
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x78], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x88], 0x4b189680
jmp 0x49bdda
cmp dword [ebx + 0xf4], eax
jne 0x49bacb
mov esi, dword [esp + 0x144]
test esi, esi
je 0x49ba89
mov eax, dword [esi + 4]
cmp eax, 3
je 0x49ba6d
test eax, eax
jne 0x49ba37
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x80]
mov edx, dword [ecx + 0x44]
cmp dword [edx + 0x24], 0xb
je 0x49ba6d
lea eax, [esp + 0x78]
push eax
mov ecx, esi
call fcn.00401470
mov eax, dword [esp + 0x9c]
or eax, 0x400
mov dword [esp + 0x94], 0x63
mov dword [esp + 0x84], esi
mov dword [esp + 0x9c], eax
jmp 0x49bdda
lea ecx, [esp + 0x78]
push ecx
mov ecx, esi
mov dword [esp + 0x98], 0x63
call fcn.00401470
jmp 0x49bdda
mov eax, dword [esp + 0x13c]
test eax, eax
je 0x49babb
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x78], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x94], 0x63
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
jmp 0x49bdda
mov dword [esp + 0x94], 0x64
jmp 0x49bdda
mov eax, dword [ebx + 0xc0]
cmp eax, 6
je 0x49bd88
cmp eax, 5
je 0x49bd88
xor ecx, ecx
cmp eax, 0xe
jne 0x49baf5
mov ebp, dword [esp + 0x18]
cmp dword [ebp + 0x60], esi
jne 0x49baf5
mov ecx, edx
cmp eax, 9
mov ebp, 0x64
je 0x49bb1a
cmp eax, 0x14
je 0x49bb1a
cmp eax, 0x12
je 0x49bb1a
cmp ecx, 1
je 0x49bb1a
cmp eax, 0x13
mov dword [esp + 0x94], ebp
jne 0x49bb25
mov dword [esp + 0x94], 0x66
mov eax, dword [esp + 0x1c]
xor esi, esi
test eax, eax
je 0x49bb3f
mov ecx, eax
call fcn.00403800
test eax, eax
jne 0x49bb3f
mov esi, 1
fld dword [ebx + 0x3b0]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x41
jne 0x49bdda
test esi, esi
jne 0x49bdda
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0xa0]
inc edx
mov ecx, edx
cmp ecx, 2
mov dword [eax + 0xa0], edx
jae 0x49bb7e
test edi, edi
je 0x49bdda
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0xdc]
mov dword [esi + 0xa0], 0
call fcn.004f4ce0
push 0x67
call fcn.00418ff0
mov ecx, dword [ebx + 0x27c]
mov edx, dword [ebx + 0x280]
mov dword [esp + 0x118], eax
mov eax, dword [ebx + 0x288]
mov dword [esp + 0x128], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x134], eax
mov eax, dword [ebx + 0x284]
mov dword [esp + 0xe0], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x130], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xec], ecx
mov ecx, dword [esp + 0x13c]
mov dword [esp + 0xe8], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x12c], edx
mov edx, dword [esp + 0x44]
add esp, 4
test eax, eax
mov dword [esp + 0x108], ebp
mov dword [esp + 0xe0], edx
mov dword [esp + 0x110], 0x16
mov dword [esp + 0x11c], esi
mov dword [esp + 0x120], ecx
jne 0x49bc4b
call fcn.00404080
test eax, eax
mov dword [esp + 0xfc], 0x469c4000
jne 0x49bc56
mov dword [esp + 0xfc], 0x459c4000
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0xdc]
push ecx
mov ecx, dword [0x6800e4]
mov dword [esp + 0x104], edx
mov dword [esp + 0x108], eax
call fcn.004f54c0
mov esi, eax
test esi, esi
je 0x49bd7a
mov ebp, dword [esi + 4]
mov edx, dword [esi + 0x50]
mov eax, dword [esi + 0x94]
or ebp, 1
add edx, 0x5dc
test eax, eax
mov dword [esi + 0x68], 0x5dc
mov dword [esi + 4], ebp
mov dword [esi + 0x54], edx
je 0x49bcd3
mov ecx, dword [ebx + 0x3b0]
xor edx, edx
mov dx, word [eax]
mov dword [eax + 0x334], ecx
mov byte [eax + 0x305], 3
and edx, 0xff7f
or edx, 0x40
mov word [eax], dx
mov eax, dword [0x680038]
mov ecx, dword [eax + 0x419e4]
push 1
push 3
call fcn.0054c440
cmp al, 0xff
mov byte [esp + 0x28], al
je 0x49bd7a
mov ecx, dword [0x680038]
mov edi, dword [esp + 0x28]
mov ecx, dword [ecx + 0x419e4]
push edi
call fcn.00549950
push edi
mov ecx, esi
call fcn.004f4d00
mov edx, dword [ebx + 0x288]
mov eax, dword [ebx + 0x27c]
mov ecx, dword [ebx + 0x280]
mov dword [esp + 0xcc], edx
mov edx, dword [ebx + 0x284]
mov dword [esp + 0xc0], eax
mov eax, dword [0x680038]
push 0x437a0000
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], edx
mov ecx, dword [eax + 0x419e4]
push edi
call fcn.00549f00
mov edx, dword [0x680038]
lea ecx, [esp + 0xc0]
push ecx
mov ecx, dword [edx + 0x419e4]
push 0x617aa0
push edi
call fcn.0054ba20
lea ecx, [esp + 0xdc]
call fcn.004031a0
jmp 0x49bdda
cmp dword [ebp + 4], edx
mov dword [esp + 0x94], 0x64
jne 0x49bdda
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax + 0x5c]
cmp eax, 1
jne 0x49bdda
mov eax, dword [ebp + 0x488]
test eax, eax
je 0x49bdda
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x49bdda
mov edx, dword [eax + 0x3a0]
mov ecx, dword [0x680120]
mov eax, dword [ecx + edx*4 + 0x10]
push eax
push 0x43c80000
push 0
push 0x41200000
call fcn.004dd1a0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xa8], eax
mov eax, dword [eax + 0xa4]
test eax, eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
je 0x49be10
mov dword [esp + 0xac], eax
jmp 0x49be1e
mov ecx, dword [esp + 0x138]
mov dword [esp + 0xac], ecx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x49be31
or dword [esp + 0x9c], 0x80
mov eax, dword [esp + 0x14]
test eax, eax
mov esi, dword [esp + 0x1c]
je 0x49be53
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x30]
test eax, eax
je 0x49be53
or dword [esp + 0x9c], 0x200
mov eax, dword [ebx + 0x15c]
test eax, eax
je 0x49be65
or dword [esp + 0x9c], 8
mov al, byte [ebx + 0xcc]
test al, al
mov dword [esp + 0x18], 0
jbe 0x49c102
mov ebp, 2
mov ecx, dword [0x6800e4]
lea eax, [esp + 0x68]
push eax
call fcn.004f54c0
mov edi, eax
test edi, edi
je 0x49c07e
mov eax, dword [ebx + 0xc0]
cmp eax, 0x12
je 0x49beaf
cmp eax, 5
je 0x49beaf
cmp eax, 6
jne 0x49bf20
mov ecx, dword [0x680038]
mov ecx, dword [ecx + 0x419e4]
push 1
push 3
call fcn.0054c440
cmp al, 0xff
mov byte [esp + 0x28], al
je 0x49bf20
mov edx, dword [0x680038]
mov esi, dword [esp + 0x28]
mov ecx, dword [edx + 0x419e4]
push esi
call fcn.00549950
push esi
mov ecx, edi
call fcn.004f4d00
mov eax, dword [0x680038]
mov ecx, dword [eax + 0x419e4]
push 0x459c4000
push esi
call fcn.00549f00
mov ecx, dword [0x680038]
mov ecx, dword [ecx + 0x419e4]
push 0x617a80
push 0x617a90
push esi
call fcn.0054ba20
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x140]
test eax, eax
jne 0x49bf5b
mov edx, dword [0x68008c]
mov eax, dword [edx + 0x1a4c]
fld dword [eax + 0xc]
fdiv dword [esp + 0x88]
fmul dword [0x5da6e8]
call fcn.0058c3f0
or dword [edi + 4], 1
mov ecx, dword [edi + 0x50]
add ecx, eax
mov dword [edi + 0x68], eax
mov dword [edi + 0x54], ecx
mov eax, dword [ebx + 0x15c]
test eax, eax
je 0x49c07e
mov ecx, dword [0x6800b4]
push eax
push 0x10
lea edx, [edi + 8]
push edx
call fcn.004f1bd0
mov esi, eax
test esi, esi
je 0x49c07a
push esi
mov ecx, edi
call fcn.004f4d80
mov eax, dword [edi + 0x68]
push eax
mov ecx, esi
call fcn.004f0c30
push 0x43480000
push 0xc3480000
call fcn.004bd540
fst dword [esp + 0x44]
mov edx, dword [esp + 0x44]
fst dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
fstp dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
add esp, 8
cmp dword [ebx + 0xf4], ebp
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov edi, edx
jne 0x49c068
fld dword [esp + 0x78]
lea ecx, [esp + 0xc0]
fsub dword [esp + 0x6c]
push ecx
lea edx, [esp + 0xd4]
push edx
fstp dword [esp + 0xd8]
fld dword [esp + 0x84]
fsub dword [esp + 0x78]
fstp dword [esp + 0xdc]
fld dword [esp + 0x88]
fsub dword [esp + 0x7c]
fstp dword [esp + 0xe0]
call fcn.004bf190
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xcc]
lea eax, [esi + 0x64]
mov dword [eax], ecx
mov ecx, dword [esp + 0xd0]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x58]
lea edx, [esi + 0x70]
mov dword [esp + 0x5c], 0
mov ecx, dword [esp + 0x5c]
mov dword [edx], eax
mov dword [edx + 4], ecx
add esp, 8
mov dword [edx + 8], edi
jmp 0x49c073
lea edi, [esi + 0x70]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
or dword [esi + 0xb0], 0x40
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x140]
test eax, eax
jne 0x49c0ea
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], eax
mov ecx, dword [ebx + 0x28c]
mov dword [esp + 0x20], ecx
fld dword [esp + 0x20]
mov esi, ecx
fchs
push esi
fstp dword [esp + 0x14]
mov edi, dword [esp + 0x14]
push edi
call fcn.004bd540
fadd dword [esp + 0x94]
push esi
push edi
fstp dword [esp + 0x9c]
call fcn.004bd540
fadd dword [esp + 0xa0]
mov esi, dword [esp + 0x2c]
add esp, 0x10
fstp dword [esp + 0x90]
mov eax, dword [esp + 0x18]
movzx edx, byte [ebx + 0xcc]
inc eax
cmp eax, edx
mov dword [esp + 0x18], eax
jb 0x49be80
mov eax, dword [esp + 0x14]
test eax, eax
je 0x49c286
mov eax, dword [ebx + 0x29c]
mov dword [esp + 0x14], eax
cmp dword [ebx + 0xc0], 9
je 0x49c12f
fld dword [esp + 0x14]
fmul dword [0x5da2f8]
fstp dword [esp + 0x14]
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x5c]
test eax, eax
je 0x49c1ec
mov eax, dword [esi + 0x488]
mov ecx, dword [eax + 0x2c]
mov edx, dword [eax + 0x30]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x428]
test ecx, ecx
mov dword [esp + 0x2c], edx
je 0x49c172
mov ecx, dword [eax + 0x424]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x428]
test ecx, ecx
jne 0x49c1d2
mov ecx, dword [eax + 0x470]
test ecx, ecx
jne 0x49c1d2
fld dword [esp + 0x28]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x49c19e
fld dword [esp + 0x2c]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jnp 0x49c1d2
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x50]
lea edx, [esi + 0xda8]
mov dword [edx], eax
mov dword [esp + 0x54], 0
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x58]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
jmp 0x49c233
movzx ecx, word [ebx + 0x2a0]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
push ecx
fild dword [esp + 0x2c]
fstp dword [esp]
push edx
jmp 0x49c22c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
test eax, eax
je 0x49c214
mov ecx, dword [0x68008c]
test byte [ecx + 0x1b8c], 1
je 0x49c214
fld dword [esp + 0x14]
fmul dword [0x5da708]
fstp dword [esp + 0x14]
movzx edx, word [ebx + 0x2a0]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], edx
push ecx
fild dword [esp + 0x2c]
fstp dword [esp]
push eax
mov ecx, esi
call fcn.00473800
mov ecx, dword [0x680098]
mov edx, dword [ecx + 0x10]
mov dword [esi + 0xdb4], edx
fld dword [ebx + 0x394]
fcomp dword [0x5ded14]
fnstsw ax
test ah, 0x41
jne 0x49c263
mov eax, dword [0x680098]
mov ecx, dword [eax + 0x10]
mov dword [esi + 0xdb8], ecx
mov eax, dword [esi + 0x488]
test eax, eax
je 0x49c286
mov dword [eax + 0x334], 0xffffffff
mov edx, dword [0x680098]
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x338], ecx
lea ecx, [esp + 0x68]
call fcn.004031a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret 0x14