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

Disassembly:
push 0xffffffffffffffff
push 0x4c6ed9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov esi, dword [esp + 0x8c]
xor edi, edi
push 1
lea ecx, [ebp + 8]
mov dword [esp + 0x14], edi
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [esp + 0x8c], edi
call dword [eax + 8]
mov edx, dword [esi]
push 4
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call dword [edx + 8]
cmp dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
jbe 0x49b2fa
jmp 0x49aff0
push 0x5c
call fcn.004ad909
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x49b026
mov dword [eax + 4], ebx
mov dword [eax], 0x4f7340
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x2c], ebx
xor edx, edx
mov dword [eax + 0x38], edx
mov dword [eax + 0x3c], edx
mov dword [eax + 0x40], ebx
mov dword [eax + 0x44], ebx
mov edi, eax
jmp 0x49b028
xor edi, edi
cmp edi, ebx
mov dword [esp + 0x20], edi
je 0x49b033
inc dword [edi + 4]
push ecx
mov eax, esp
mov dword [eax], esi
mov edx, dword [esi + 4]
inc edx
mov ecx, edi
mov byte [esp + 0x88], 1
mov dword [esp + 0x2c], esp
mov dword [esi + 4], edx
call fcn.0048da40
mov eax, dword [edi + 0x10]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
call fcn.004952d0
mov eax, dword [eax]
cmp eax, ebx
mov byte [esp + 0x84], 2
je 0x49b073
inc dword [eax + 4]
mov ecx, dword [edi + 0x2c]
cmp ecx, ebx
mov dword [edi + 0x2c], eax
je 0x49b090
mov edx, dword [ecx + 4]
dec edx
mov eax, edx
cmp eax, ebx
mov dword [ecx + 4], edx
jne 0x49b090
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov byte [esp + 0x84], 1
je 0x49b0b9
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
mov eax, edx
mov dword [esp + 0x28], eax
jne 0x49b0b9
mov edx, dword [ecx]
push 1
call dword [edx]
fld dword [0x4f2a08]
mov ecx, dword [edi + 0x2c]
fsub dword [edi + 0xc]
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 8]
push ecx
fstp dword [esp]
push eax
push edx
call fcn.00424870
mov eax, dword [edi + 0x2c]
cmp eax, ebx
push 1
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
mov dword [ecx], eax
je 0x49b0ed
inc dword [eax + 4]
mov byte [esp + 0x90], 3
call fcn.0040e220
mov edx, dword [eax]
mov ecx, eax
mov byte [esp + 0x90], 1
call dword [edx + 0x10]
cmp dword [edi + 0x30], 0xffffffff
jle 0x49b260
push 0x1e8
call fcn.004ad909
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebx
mov byte [esp + 0x84], 4
je 0x49b139
mov ecx, eax
call fcn.0042dd20
jmp 0x49b13b
xor eax, eax
cmp eax, ebx
mov byte [esp + 0x84], 1
je 0x49b14a
inc dword [eax + 4]
mov ecx, dword [edi + 0x40]
cmp ecx, ebx
mov dword [edi + 0x40], eax
je 0x49b167
mov edx, dword [ecx + 4]
dec edx
mov eax, edx
cmp eax, ebx
mov dword [ecx + 4], edx
jne 0x49b167
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [edi + 0x30]
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov eax, dword [edi + 0x34]
mov dword [edx + 4], eax
mov dword [esp + 0x38], esp
xor eax, eax
lea ecx, [edi + 0x38]
mov ebx, dword [ecx]
mov dword [edx + eax*4 + 8], ebx
inc eax
add ecx, 4
cmp eax, 2
jl 0x49b180
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebp
call fcn.0049a600
mov eax, dword [eax]
test eax, eax
mov byte [esp + 0x84], 5
je 0x49b1ac
inc dword [eax + 4]
mov ecx, dword [edi + 0x40]
test ecx, ecx
mov dword [edi + 0x40], eax
je 0x49b1c9
mov edx, dword [ecx + 4]
dec edx
mov eax, edx
test eax, eax
mov dword [ecx + 4], edx
jne 0x49b1c9
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x1c]
test eax, eax
mov byte [esp + 0x84], 1
je 0x49b1f2
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
mov eax, edx
mov dword [esp + 0x28], eax
jne 0x49b1f2
mov edx, dword [ecx]
push 1
call dword [edx]
fld dword [0x4f2a08]
mov eax, dword [edi + 8]
fsub dword [edi + 0xc]
mov ecx, dword [edi + 0x40]
sub esp, 8
fadd dword [ebp + 0x198]
fstp dword [esp + 4]
fld dword [edi + 0xc]
fsub dword [0x4f2a20]
fstp dword [esp]
push eax
call fcn.00424870
mov ecx, dword [edi + 0x40]
push 0x3f333333
call fcn.004248d0
mov eax, dword [edi + 0x40]
test eax, eax
push 1
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
mov dword [ecx], eax
je 0x49b244
inc dword [eax + 4]
mov byte [esp + 0x90], 6
call fcn.0040e220
mov edx, dword [eax]
mov ecx, eax
mov byte [esp + 0x90], 1
call dword [edx + 0x10]
mov edx, dword [ebp + 0x10]
test edx, edx
lea ebx, [ebp + 0xc]
jne 0x49b26e
xor ecx, ecx
jmp 0x49b276
mov ecx, dword [ebx + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x49b2b2
mov eax, dword [ebx + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x49b2b2
mov ecx, dword [esp + 0x8c]
mov eax, dword [ebx + 8]
push ecx
push ebx
lea edx, [esp + 0x28]
push edx
push 1
push eax
mov dword [esp + 0x3c], eax
call fcn.00470810
mov eax, dword [esp + 0x3c]
add esp, 0x14
add eax, 4
mov dword [ebx + 8], eax
jmp 0x49b2c8
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x20]
push ecx
push 1
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ecx, ebx
call fcn.004935d0
mov ecx, dword [edi + 4]
dec ecx
mov eax, ecx
test eax, eax
mov byte [esp + 0x84], 0
mov dword [edi + 4], ecx
jne 0x49b2e5
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x49aff0
mov eax, dword [esi]
push 4
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call dword [eax + 8]
mov eax, dword [ebp + 0x148]
lea edi, [ebp + 0x144]
xor ebx, ebx
cmp eax, ebx
je 0x49b323
push eax
call fcn.004ade5d
add esp, 4
cmp dword [esp + 0x10], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [esp + 0x14], ebx
jbe 0x49b3da
lea ebx, [ebx]
xor edx, edx
mov dword [esp + 0x48], edx
push 4
lea ecx, [esp + 0x44]
mov dword [esp + 0x50], edx
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 8]
mov edx, dword [esi]
push 4
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call dword [edx + 8]
mov ecx, dword [edi + 4]
cmp ecx, ebx
jne 0x49b371
xor edx, edx
jmp 0x49b379
mov edx, dword [edi + 8]
sub edx, ecx
sar edx, 4
cmp ecx, ebx
je 0x49b3af
mov eax, dword [edi + 0xc]
sub eax, ecx
sar eax, 4
cmp edx, eax
jae 0x49b3af
mov ecx, dword [esp + 0x8c]
mov ebx, dword [edi + 8]
push ecx
push edi
lea edx, [esp + 0x48]
push edx
push 1
push ebx
call fcn.0047b740
add ebx, 0x10
add esp, 0x14
mov dword [edi + 8], ebx
xor ebx, ebx
jmp 0x49b3c5
mov eax, dword [edi + 8]
lea ecx, [esp + 0x40]
push ecx
push 1
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ecx, edi
call fcn.0047bae0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x49b340
mov edx, dword [esi]
lea eax, [ebp + 0x190]
push 8
push eax
mov ecx, esi
call dword [edx + 8]
mov eax, dword [esi]
push 4
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call dword [eax + 8]
mov eax, dword [ebp + 0x1c0]
cmp eax, ebx
lea edi, [ebp + 0x1bc]
je 0x49b411
push eax
call fcn.004ade5d
add esp, 4
cmp dword [esp + 0x10], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [esp + 0x14], ebx
jbe 0x49b4b6
jmp 0x49b430
push 4
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 8]
mov ecx, dword [edi + 4]
cmp ecx, ebx
jne 0x49b44d
xor edx, edx
jmp 0x49b455
mov edx, dword [edi + 8]
sub edx, ecx
sar edx, 2
cmp ecx, ebx
je 0x49b48b
mov eax, dword [edi + 0xc]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x49b48b
mov ecx, dword [esp + 0x8c]
mov ebx, dword [edi + 8]
push ecx
push edi
lea edx, [esp + 0x24]
push edx
push 1
push ebx
call fcn.0047b030
add ebx, 4
add esp, 0x14
mov dword [edi + 8], ebx
xor ebx, ebx
jmp 0x49b4a1
mov eax, dword [edi + 8]
lea ecx, [esp + 0x1c]
push ecx
push 1
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ecx, edi
call fcn.0043c790
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x49b430
mov edx, dword [esi]
push 4
lea eax, [ebp + 0x1e8]
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
push 4
lea eax, [ebp + 0x1f4]
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
push 4
lea eax, [ebp + 0x1f8]
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
push 4
lea eax, [ebp + 0x1fc]
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
lea eax, [ebp + 0x210]
push 4
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
lea eax, [ebp + 0x218]
push 1
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
lea eax, [ebp + 0x219]
push 1
push eax
mov ecx, esi
call dword [edx + 8]
mov eax, dword [esi]
push 1
lea ecx, [ebp + 0x21a]
push ecx
mov ecx, esi
call dword [eax + 8]
mov edx, dword [esi]
push 4
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call dword [edx + 8]
cmp dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
jbe 0x49b9d8
mov dword [esp + 0x5c], 0xffffffff
mov byte [esp + 0x58], 1
mov dword [esp + 0x54], 0x447a0000
jmp 0x49b570
push 0xc
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 8]
xor edi, edi
push 4
lea eax, [esp + 0x24]
mov dword [esp + 0x24], edi
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 8]
mov ebx, 0xf
mov eax, str.data_objects_shot_bonuses_rockets.xml
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], edi
mov byte [esp + 0x64], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49b5c4
sub eax, edx
push eax
push str.data_objects_shot_bonuses_rockets.xml
lea ecx, [esp + 0x68]
call fcn.00402cd0
cmp dword [0x51fff8], edi
mov byte [esp + 0x84], 7
jne 0x49b62e
push 0x14
call fcn.004ad909
mov edi, eax
add esp, 4
mov dword [esp + 0x28], edi
test edi, edi
mov byte [esp + 0x84], 8
je 0x49b611
mov ecx, edi
call fcn.0042fa10
jmp 0x49b613
xor edi, edi
push 0x4155f0
mov byte [esp + 0x88], 7
mov dword [0x51fff8], edi
call fcn.004ae4d4
add esp, 4
push 0
push 0
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [0x51fff8]
lea edx, [esp + 0x28]
push edx
call fcn.00431b90
cmp dword [esp + 0x78], 0x10
mov byte [esp + 0x84], 0xa
jb 0x49b663
mov eax, dword [esp + 0x64]
push eax
call fcn.004ade5d
add esp, 4
mov eax, dword [0x51ffa0]
test eax, eax
push 1
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], 0
mov byte [esp + 0x68], 0
push 1
jne 0x49b6c3
push 0x50
call fcn.004ad909
mov edi, eax
add esp, 4
mov dword [esp + 0x30], edi
test edi, edi
mov byte [esp + 0x8c], 0xb
je 0x49b6a6
mov ecx, edi
call fcn.0040cc80
jmp 0x49b6a8
xor edi, edi
push 0x402e40
mov byte [esp + 0x90], 0xa
mov dword [0x51ffa0], edi
call fcn.004ae4d4
add esp, 4
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push ecx
mov ecx, dword [0x51ffa0]
call fcn.004016d0
mov ecx, dword [esp + 0x28]
call fcn.00425c90
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
push 0xc4160000
push edx
push eax
call fcn.00424870
call fcn.004af0f4
cdq
mov ecx, 0x2710
idiv ecx
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
fmul dword [0x4f3088]
fmul dword [0x4f5880]
fsub dword [0x4f2a18]
fstp dword [esp + 0x24]
call fcn.004af0f4
cdq
mov ecx, 0x2710
idiv ecx
mov dword [esp + 0x3c], 0
xor eax, eax
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x38], edx
fmul dword [0x4f3088]
fmul dword [0x4f5880]
fsub dword [0x4f2a18]
fstp dword [esp + 0x34]
fld dword [0x4fc4b8]
fld dword [esp + eax*4 + 0x34]
inc eax
cmp eax, 3
fld st(0)
fmul st(1)
faddp st(2)
fstp st(0)
jb 0x49b765
fcom dword [0x4fc4b8]
fnstsw ax
test ah, 0x44
jnp 0x49b7b0
fsqrt
fcom dword [0x4fc4b8]
fnstsw ax
test ah, 0x44
jnp 0x49b7b0
fdivr dword [0x4f3084]
xor eax, eax
jmp 0x49b7a0
fld st(0)
inc eax
cmp eax, 3
fmul dword [esp + eax*4 + 0x30]
fstp dword [esp + eax*4 + 0x30]
jb 0x49b7a0
mov ecx, dword [esp + 0x1c]
fstp st(0)
lea eax, [esp + 0x34]
push eax
call fcn.00422480
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x2c]
test eax, eax
mov byte [esp + 0x84], 0xc
mov dword [esp + 0x24], eax
je 0x49b7e0
inc dword [eax + 4]
mov edi, dword [esp + 0x1c]
mov ecx, dword [edi + 0x1ac]
add edi, 0x1a8
test ecx, ecx
mov dword [esp + 0x50], eax
jne 0x49b7fc
xor edx, edx
jmp 0x49b804
mov edx, dword [edi + 8]
sub edx, ecx
sar edx, 4
test ecx, ecx
je 0x49b838
mov eax, dword [edi + 0xc]
sub eax, ecx
sar eax, 4
cmp edx, eax
jae 0x49b838
mov edx, dword [esp + 0x8c]
mov ebx, dword [edi + 8]
push edx
push edi
lea eax, [esp + 0x58]
push eax
push 1
push ebx
call fcn.00484e10
add esp, 0x14
add ebx, 0x10
mov dword [edi + 8], ebx
jmp 0x49b84e
mov eax, dword [edi + 8]
lea ecx, [esp + 0x50]
push ecx
push 1
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ecx, edi
call fcn.004858f0
mov edx, dword [esp + 0x1c]
push 1
push 1
push ecx
mov eax, esp
mov dword [eax], edx
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x34], esp
je 0x49b86a
inc dword [eax + 4]
mov byte [esp + 0x90], 0xd
call fcn.0040e220
mov edx, dword [eax]
mov ecx, eax
mov byte [esp + 0x90], 0xc
call dword [edx + 0x10]
mov eax, dword [esp + 0x1c]
test eax, eax
mov byte [esp + 0x84], 0xe
mov ebx, eax
je 0x49b89b
inc dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x20]
mov edi, dword [eax + ecx*4]
test edi, edi
mov dword [esp + 0x2c], ebx
je 0x49b8b0
inc dword [edi + 4]
mov edx, dword [ebp + 0x234]
test edx, edx
mov dword [esp + 0x30], edi
jne 0x49b8c2
xor ecx, ecx
jmp 0x49b8cd
mov ecx, dword [ebp + 0x238]
sub ecx, edx
sar ecx, 3
test edx, edx
je 0x49b918
mov eax, dword [ebp + 0x23c]
sub eax, edx
sar eax, 3
cmp ecx, eax
jae 0x49b918
mov edx, dword [esp + 0x8c]
mov ecx, dword [ebp + 0x238]
push edx
lea eax, [ebp + 0x230]
push eax
lea eax, [esp + 0x34]
push eax
push 1
push ecx
mov dword [esp + 0x3c], ecx
call fcn.0048f460
mov ecx, dword [esp + 0x3c]
add esp, 0x14
add ecx, 8
mov dword [ebp + 0x238], ecx
jmp 0x49b935
mov eax, dword [ebp + 0x238]
lea edx, [esp + 0x2c]
push edx
lea ecx, [ebp + 0x230]
push 1
push ecx
mov edx, esp
mov dword [edx], eax
call fcn.0048fa70
test edi, edi
mov byte [esp + 0x84], 0xf
je 0x49b956
mov ecx, dword [edi + 4]
dec ecx
mov eax, ecx
test eax, eax
mov dword [edi + 4], ecx
jne 0x49b956
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
test ebx, ebx
mov byte [esp + 0x84], 0xc
je 0x49b977
mov ecx, dword [ebx + 4]
dec ecx
mov eax, ecx
test eax, eax
mov dword [ebx + 4], ecx
jne 0x49b977
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
mov eax, dword [esp + 0x24]
test eax, eax
mov byte [esp + 0x84], 0xa
je 0x49b99c
mov edx, dword [eax + 4]
dec edx
mov ecx, edx
test ecx, ecx
mov dword [eax + 4], edx
jne 0x49b99c
mov ecx, eax
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x1c]
test eax, eax
mov byte [esp + 0x84], 0
je 0x49b9c3
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
mov dword [esp + 0x28], edx
jne 0x49b9c3
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x49b570
mov edx, dword [esi]
push 8
lea eax, [ebp + 0x240]
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
push 8
lea ebx, [ebp + 0x248]
push ebx
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
lea eax, [ebp + 0x220]
push 8
push eax
mov ecx, esi
call dword [edx + 8]
mov eax, dword [esi]
push 8
lea ecx, [ebp + 0x260]
push ecx
mov ecx, esi
call dword [eax + 8]
mov edx, dword [esi]
push 4
lea eax, [ebp + 0x268]
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
push 4
lea eax, [ebp + 0x2a4]
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
push 4
lea eax, [ebp + 0x210]
push eax
mov ecx, esi
call dword [edx + 8]
mov eax, dword [esi]
push 1
lea ecx, [ebp + 0x26c]
push ecx
mov ecx, esi
call dword [eax + 8]
mov edx, dword [esi]
push 1
lea eax, [ebp + 0x28c]
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
push 8
lea eax, [ebp + 0x290]
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
push 1
lea eax, [ebp + 0x2a0]
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
push 8
lea eax, [ebp + 0x2b0]
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
push 4
lea eax, [ebp + 0x2a8]
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
push 4
lea eax, [ebp + 0x2b8]
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
push 1
lea eax, [ebp + 0x2c8]
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
push 4
lea eax, [ebp + 0x278]
push eax
mov ecx, esi
call dword [edx + 8]
mov eax, dword [ebp + 0x10]
test eax, eax
mov dword [esp + 0x20], 0
je 0x49bbeb
mov ecx, dword [ebp + 0x14]
sub ecx, eax
sar ecx, 2
test ecx, ecx
mov dword [esp + 0x28], ecx
jbe 0x49bbeb
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
mov dword [esp + 0x1c], edi
je 0x49bb14
inc dword [edi + 4]
mov eax, dword [edi + 0x14]
mov edx, dword [ebp + 0x20]
add eax, 5
mov eax, dword [edx + eax*4]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], edx
lea ecx, [edi + 8]
mov dword [esp + 0x18], eax
lea edx, [esp + 0x14]
xor eax, eax
mov byte [esp + 0x84], 0x10
sub ecx, edx
fld dword [esp + eax*4 + 0x14]
lea edx, [ecx + eax*4]
fsub dword [esp + edx + 0x14]
inc eax
cmp eax, 2
fstp dword [esp + eax*4 + 0x10]
jb 0x49bb40
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
call fcn.00465170
fsub dword [0x4f730c]
fcom dword [0x4fc4b8]
fst dword [esp + 0x24]
fnstsw ax
test ah, 5
jp 0x49bb93
fld dword [0x4f730c]
fadd st(0), st(0)
faddp st(1)
fst dword [esp + 0x24]
mov edx, dword [esp + 0x24]
fstp dword [edi + 0x4c]
mov eax, dword [edi + 0x10]
push edx
push eax
mov eax, dword [edi + 0x2c]
test eax, eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
mov dword [ecx], eax
je 0x49bbb2
inc dword [eax + 4]
mov ecx, ebp
call fcn.0048f740
mov ecx, dword [edi + 4]
dec ecx
mov eax, ecx
test eax, eax
mov byte [esp + 0x84], 0
mov dword [edi + 4], ecx
jne 0x49bbd6
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
inc ecx
cmp ecx, eax
mov dword [esp + 0x20], ecx
jb 0x49bb03
mov ecx, dword [ebp + 0x190]
mov eax, dword [ebp + 0x220]
mov edi, dword [ebp + 0x194]
sub eax, ecx
mov ecx, dword [ebp + 0x224]
sbb ecx, edi
xor edx, edx
mov dl, byte [ebp + 0x219]
push ecx
push eax
mov ecx, ebp
push edx
call fcn.00495490
mov eax, dword [ebx]
sub eax, dword [ebp + 0x190]
mov ecx, dword [ebx + 4]
sbb ecx, dword [ebp + 0x194]
xor edx, edx
mov dl, byte [ebp + 0x218]
push ecx
push eax
mov ecx, ebp
push edx
call fcn.00490640
mov eax, dword [esi + 4]
dec eax
mov dword [esp + 0x84], 0xffffffff
mov dword [esi + 4], eax
jne 0x49bc58
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x78
ret 0xc